private void HandleOutput(ModifyVcnCidrRequest request) { var waiterConfig = new WaiterConfiguration { MaxAttempts = MaxWaitAttempts, GetNextDelayInSeconds = (_) => WaitIntervalSeconds }; switch (ParameterSetName) { case StatusParamSet: response = client.Waiters.ForModifyVcnCidr(request, waiterConfig, WaitForStatus).Execute(); break; case Default: response = client.ModifyVcnCidr(request).GetAwaiter().GetResult(); break; } WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); }
protected override void ProcessRecord() { base.ProcessRecord(); ModifyVcnCidrRequest request; try { request = new ModifyVcnCidrRequest { VcnId = VcnId, ModifyVcnCidrDetails = ModifyVcnCidrDetails, OpcRequestId = OpcRequestId, OpcRetryToken = OpcRetryToken, IfMatch = IfMatch }; HandleOutput(request); FinishProcessing(response); } catch (Exception ex) { TerminatingErrorDuringExecution(ex); } }