Amazon.Runtime.Internal.ExecutionContext.CreateFromAsyncContext C# (CSharp) Method

CreateFromAsyncContext() public static method

public static CreateFromAsyncContext ( IAsyncExecutionContext asyncContext ) : IExecutionContext
asyncContext IAsyncExecutionContext
return IExecutionContext
        public static IExecutionContext CreateFromAsyncContext(IAsyncExecutionContext asyncContext)
        {
            return new ExecutionContext(asyncContext.RequestContext,
                asyncContext.ResponseContext);
        }
    }

Usage Example

コード例 #1
0
 /// <summary>
 /// Calls pre invoke logic before calling the next handler
 /// in the pipeline.
 /// </summary>
 /// <param name="executionContext">The execution context which contains both the
 /// requests and response context.</param>
 /// <returns>IAsyncResult which represent an async operation.</returns>
 public override IAsyncResult InvokeAsync(IAsyncExecutionContext executionContext)
 {
     PreInvoke(ExecutionContext.CreateFromAsyncContext(executionContext));
     return(base.InvokeAsync(executionContext));
 }
All Usage Examples Of Amazon.Runtime.Internal.ExecutionContext::CreateFromAsyncContext