private void HandleOutput(GetCrossConnectRequest request)
        {
            var waiterConfig = new WaiterConfiguration
            {
                MaxAttempts           = MaxWaitAttempts,
                GetNextDelayInSeconds = (_) => WaitIntervalSeconds
            };

            switch (ParameterSetName)
            {
            case LifecycleStateParamSet:
                response = client.Waiters.ForCrossConnect(request, waiterConfig, WaitForLifecycleState).Execute();
                break;

            case Default:
                response = client.GetCrossConnect(request).GetAwaiter().GetResult();
                break;
            }
            WriteOutput(response, response.CrossConnect);
        }
        protected override void ProcessRecord()
        {
            base.ProcessRecord();
            GetCrossConnectRequest request;

            try
            {
                request = new GetCrossConnectRequest
                {
                    CrossConnectId = CrossConnectId
                };

                HandleOutput(request);
                FinishProcessing(response);
            }
            catch (Exception ex)
            {
                TerminatingErrorDuringExecution(ex);
            }
        }