internal virtual GetRawMessageContentResponse GetRawMessageContent(GetRawMessageContentRequest request)
        {
            var options = new InvokeOptions();

            options.RequestMarshaller    = GetRawMessageContentRequestMarshaller.Instance;
            options.ResponseUnmarshaller = GetRawMessageContentResponseUnmarshaller.Instance;

            return(Invoke <GetRawMessageContentResponse>(request, options));
        }
        /// <summary>
        /// Retrieves the raw content of an in-transit email message, in MIME format.
        /// </summary>
        /// <param name="request">Container for the necessary parameters to execute the GetRawMessageContent service method.</param>
        /// <param name="cancellationToken">
        ///     A cancellation token that can be used by other objects or threads to receive notice of cancellation.
        /// </param>
        ///
        /// <returns>The response from the GetRawMessageContent service method, as returned by WorkMailMessageFlow.</returns>
        /// <exception cref="Amazon.WorkMailMessageFlow.Model.ResourceNotFoundException">
        /// The requested email message is not found.
        /// </exception>
        /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/workmailmessageflow-2019-05-01/GetRawMessageContent">REST API Reference for GetRawMessageContent Operation</seealso>
        public virtual Task <GetRawMessageContentResponse> GetRawMessageContentAsync(GetRawMessageContentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var options = new InvokeOptions();

            options.RequestMarshaller    = GetRawMessageContentRequestMarshaller.Instance;
            options.ResponseUnmarshaller = GetRawMessageContentResponseUnmarshaller.Instance;

            return(InvokeAsync <GetRawMessageContentResponse>(request, options, cancellationToken));
        }
Beispiel #3
0
        /// <summary>
        /// Initiates the asynchronous execution of the GetRawMessageContent operation.
        /// </summary>
        ///
        /// <param name="request">Container for the necessary parameters to execute the GetRawMessageContent operation on AmazonWorkMailMessageFlowClient.</param>
        /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
        /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
        ///          procedure using the AsyncState property.</param>
        ///
        /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetRawMessageContent
        ///         operation.</returns>
        /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/workmailmessageflow-2019-05-01/GetRawMessageContent">REST API Reference for GetRawMessageContent Operation</seealso>
        public virtual IAsyncResult BeginGetRawMessageContent(GetRawMessageContentRequest request, AsyncCallback callback, object state)
        {
            var options = new InvokeOptions();

            options.RequestMarshaller    = GetRawMessageContentRequestMarshaller.Instance;
            options.ResponseUnmarshaller = GetRawMessageContentResponseUnmarshaller.Instance;

            return(BeginInvoke(request, options, callback, state));
        }