Table of Contents

Interface IPipelineHandler

Namespace
Amazon.Runtime
Assembly
AWSSDK.Core.dll

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

IPipelineHandler

Logger

The logger used to log messages.

ILogger Logger { get; set; }

Property Value

ILogger

OuterHandler

The outer handler which encapsulates the current handler.

IPipelineHandler OuterHandler { get; set; }

Property Value

IPipelineHandler

Methods

AsyncCallback(IAsyncExecutionContext)

This callback method contains the processing logic that should be executed after the underlying asynchronous operation completes. This method is called as part of a callback chain which starts from the InvokeAsyncCallback method of the bottommost handler and then invokes each callback method of the handler above it. This method should call OuterHandler.AsyncCallback to continue processing of the request by the pipeline, unless it's the topmost handler.

void AsyncCallback(IAsyncExecutionContext executionContext)

Parameters

executionContext IAsyncExecutionContext

The execution context, it contains the request and response context.

InvokeAsync(IAsyncExecutionContext)

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.

IAsyncResult InvokeAsync(IAsyncExecutionContext executionContext)

Parameters

executionContext IAsyncExecutionContext

The execution context which contains both the requests and response context.

Returns

IAsyncResult

IAsyncResult which represent a async operation.

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 IExecutionContext

The execution context which contains both the requests and response context.