示例#1
0
        internal virtual CreateVirtualRouterResponse CreateVirtualRouter(CreateVirtualRouterRequest request)
        {
            var marshaller   = CreateVirtualRouterRequestMarshaller.Instance;
            var unmarshaller = CreateVirtualRouterResponseUnmarshaller.Instance;

            return(Invoke <CreateVirtualRouterRequest, CreateVirtualRouterResponse>(request, marshaller, unmarshaller));
        }
示例#2
0
        /// <summary>
        /// Initiates the asynchronous execution of the CreateVirtualRouter operation.
        /// </summary>
        ///
        /// <param name="request">Container for the necessary parameters to execute the CreateVirtualRouter 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>
        /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appmesh-2018-10-01/CreateVirtualRouter">REST API Reference for CreateVirtualRouter Operation</seealso>
        public virtual Task <CreateVirtualRouterResponse> CreateVirtualRouterAsync(CreateVirtualRouterRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller   = CreateVirtualRouterRequestMarshaller.Instance;
            var unmarshaller = CreateVirtualRouterResponseUnmarshaller.Instance;

            return(InvokeAsync <CreateVirtualRouterRequest, CreateVirtualRouterResponse>(request, marshaller,
                                                                                         unmarshaller, cancellationToken));
        }
        /// <summary>
        /// Initiates the asynchronous execution of the CreateVirtualRouter operation.
        /// </summary>
        ///
        /// <param name="request">Container for the necessary parameters to execute the CreateVirtualRouter 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>
        /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/appmesh-2018-10-01/CreateVirtualRouter">REST API Reference for CreateVirtualRouter Operation</seealso>
        public virtual Task <CreateVirtualRouterResponse> CreateVirtualRouterAsync(CreateVirtualRouterRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var options = new InvokeOptions();

            options.RequestMarshaller    = CreateVirtualRouterRequestMarshaller.Instance;
            options.ResponseUnmarshaller = CreateVirtualRouterResponseUnmarshaller.Instance;

            return(InvokeAsync <CreateVirtualRouterResponse>(request, options, cancellationToken));
        }
        internal virtual CreateVirtualRouterResponse CreateVirtualRouter(CreateVirtualRouterRequest request)
        {
            var options = new InvokeOptions();

            options.RequestMarshaller    = CreateVirtualRouterRequestMarshaller.Instance;
            options.ResponseUnmarshaller = CreateVirtualRouterResponseUnmarshaller.Instance;

            return(Invoke <CreateVirtualRouterResponse>(request, options));
        }