Table of Contents

Class PipelineHandler

Namespace
Amazon.Runtime.Internal
Assembly
AWSSDK.Core.dll

An abstract pipeline handler that has implements IPipelineHandler, and has the default implmentation. This is the base class for most of the handler implementations.

public abstract class PipelineHandler : IPipelineHandler
Inheritance
PipelineHandler
Implements
Derived
Inherited Members

Constructors

PipelineHandler()

protected PipelineHandler()

Properties

InnerHandler

The inner handler which is called after the current handler completes it's processing.

public IPipelineHandler InnerHandler { get; set; }

Property Value

IPipelineHandler

Logger

The logger used to log messages.

public virtual ILogger Logger { get; set; }

Property Value

ILogger

OuterHandler

The outer handler which encapsulates the current handler.

public IPipelineHandler OuterHandler { get; set; }

Property Value

IPipelineHandler

Methods

InvokeAsync<T>(IExecutionContext)

Contains the processing logic for an asynchronous request invocation. This method calls InnerHandler.InvokeSync to continue processing of the request by the pipeline.

public virtual Task<T> InvokeAsync<T>(IExecutionContext executionContext) where T : AmazonWebServiceResponse, new()

Parameters

executionContext IExecutionContext

The 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 calls InnerHandler.InvokeSync to continue processing of the request by the pipeline.

public virtual void InvokeSync(IExecutionContext executionContext)

Parameters

executionContext IExecutionContext

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

LogMetrics(IExecutionContext)

Logs the metrics for the current execution context.

protected void LogMetrics(IExecutionContext executionContext)

Parameters

executionContext IExecutionContext

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