コード例 #1
0
        internal CreateTrustResponse CreateTrust(CreateTrustRequest request)
        {
            var marshaller   = new CreateTrustRequestMarshaller();
            var unmarshaller = CreateTrustResponseUnmarshaller.Instance;

            return(Invoke <CreateTrustRequest, CreateTrustResponse>(request, marshaller, unmarshaller));
        }
コード例 #2
0
        /// <summary>
        /// Initiates the asynchronous execution of the CreateTrust operation.
        /// </summary>
        ///
        /// <param name="request">Container for the necessary parameters to execute the CreateTrust 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 Task <CreateTrustResponse> CreateTrustAsync(CreateTrustRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller   = new CreateTrustRequestMarshaller();
            var unmarshaller = CreateTrustResponseUnmarshaller.Instance;

            return(InvokeAsync <CreateTrustRequest, CreateTrustResponse>(request, marshaller,
                                                                         unmarshaller, cancellationToken));
        }