private void HandleOutput(UpdateExternalContainerDatabaseRequest request) { var waiterConfig = new WaiterConfiguration { MaxAttempts = MaxWaitAttempts, GetNextDelayInSeconds = (_) => WaitIntervalSeconds }; switch (ParameterSetName) { case StatusParamSet: response = client.Waiters.ForUpdateExternalContainerDatabase(request, waiterConfig, WaitForStatus).Execute(); break; case Default: response = client.UpdateExternalContainerDatabase(request).GetAwaiter().GetResult(); break; } WriteOutput(response, response.ExternalContainerDatabase); }
protected override void ProcessRecord() { base.ProcessRecord(); UpdateExternalContainerDatabaseRequest request; try { request = new UpdateExternalContainerDatabaseRequest { ExternalContainerDatabaseId = ExternalContainerDatabaseId, UpdateExternalContainerDatabaseDetails = UpdateExternalContainerDatabaseDetails, IfMatch = IfMatch, OpcRequestId = OpcRequestId }; HandleOutput(request); FinishProcessing(response); } catch (Exception ex) { TerminatingErrorDuringExecution(ex); } }