Interface IPipelineHandler
Interface for a handler in a pipeline.
public interface IPipelineHandler
Properties
InnerHandler
The inner handler which is called after the current handler completes it's processing.
IPipelineHandler InnerHandler { get; set; }
Property Value
Logger
The logger used to log messages.
ILogger Logger { get; set; }
Property Value
OuterHandler
The outer handler which encapsulates the current handler.
IPipelineHandler OuterHandler { get; set; }
Property Value
Methods
InvokeAsync<T>(IExecutionContext)
Contains the processing logic for an asynchronous request invocation. This method should call InnerHandler.InvokeSync to continue processing of the request by the pipeline, unless it's a terminating handler.
Task<T> InvokeAsync<T>(IExecutionContext executionContext) where T : AmazonWebServiceResponse, new()
Parameters
executionContext
IExecutionContextThe execution context, it contains the request and response context.
Returns
- Task<T>
A task that represents the asynchronous operation.
Type Parameters
T
The response type for the current request.
InvokeSync(IExecutionContext)
Contains the processing logic for a synchronous request invocation. This method should call InnerHandler.InvokeSync to continue processing of the request by the pipeline, unless it's a terminating handler.
void InvokeSync(IExecutionContext executionContext)
Parameters
executionContext
IExecutionContextThe execution context which contains both the requests and response context.