Esempio n. 1
0
        internal virtual GetUpgradeStatusResponse GetUpgradeStatus(GetUpgradeStatusRequest request)
        {
            var marshaller   = GetUpgradeStatusRequestMarshaller.Instance;
            var unmarshaller = GetUpgradeStatusResponseUnmarshaller.Instance;

            return(Invoke <GetUpgradeStatusRequest, GetUpgradeStatusResponse>(request, marshaller, unmarshaller));
        }
Esempio n. 2
0
        /// <summary>
        /// Initiates the asynchronous execution of the GetUpgradeStatus operation.
        /// </summary>
        ///
        /// <param name="request">Container for the necessary parameters to execute the GetUpgradeStatus operation.</param>
        /// <param name="cancellationToken">
        ///     A cancellation token that can be used by other objects or threads to receive notice of cancellation.
        /// </param>
        /// <returns>The task object representing the asynchronous operation.</returns>
        public virtual Task <GetUpgradeStatusResponse> GetUpgradeStatusAsync(GetUpgradeStatusRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller   = GetUpgradeStatusRequestMarshaller.Instance;
            var unmarshaller = GetUpgradeStatusResponseUnmarshaller.Instance;

            return(InvokeAsync <GetUpgradeStatusRequest, GetUpgradeStatusResponse>(request, marshaller,
                                                                                   unmarshaller, cancellationToken));
        }
        /// <summary>
        /// Initiates the asynchronous execution of the GetUpgradeStatus operation.
        /// </summary>
        ///
        /// <param name="request">Container for the necessary parameters to execute the GetUpgradeStatus operation.</param>
        /// <param name="cancellationToken">
        ///     A cancellation token that can be used by other objects or threads to receive notice of cancellation.
        /// </param>
        /// <returns>The task object representing the asynchronous operation.</returns>
        public virtual Task <GetUpgradeStatusResponse> GetUpgradeStatusAsync(GetUpgradeStatusRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var options = new InvokeOptions();

            options.RequestMarshaller    = GetUpgradeStatusRequestMarshaller.Instance;
            options.ResponseUnmarshaller = GetUpgradeStatusResponseUnmarshaller.Instance;

            return(InvokeAsync <GetUpgradeStatusResponse>(request, options, cancellationToken));
        }
        internal virtual GetUpgradeStatusResponse GetUpgradeStatus(GetUpgradeStatusRequest request)
        {
            var options = new InvokeOptions();

            options.RequestMarshaller    = GetUpgradeStatusRequestMarshaller.Instance;
            options.ResponseUnmarshaller = GetUpgradeStatusResponseUnmarshaller.Instance;

            return(Invoke <GetUpgradeStatusResponse>(request, options));
        }
Esempio n. 5
0
        protected override void ProcessRecord()
        {
            base.ProcessRecord();
            GetUpgradeStatusRequest request;

            try
            {
                request = new GetUpgradeStatusRequest
                {
                    DrgId        = DrgId,
                    OpcRequestId = OpcRequestId
                };

                response = client.GetUpgradeStatus(request).GetAwaiter().GetResult();
                WriteOutput(response, response.UpgradeStatus);
                FinishProcessing(response);
            }
            catch (Exception ex)
            {
                TerminatingErrorDuringExecution(ex);
            }
        }