Table of Contents

Class MetricsHandler

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

This handler manages the metrics used to time the complete call and logs the final metrics.

public class MetricsHandler : PipelineHandler, IPipelineHandler
Inheritance
MetricsHandler
Implements
Inherited Members

Constructors

MetricsHandler()

public MetricsHandler()

Methods

InvokeAsync(IAsyncExecutionContext)

Captures the overall execution time.

public override IAsyncResult InvokeAsync(IAsyncExecutionContext executionContext)

Parameters

executionContext IAsyncExecutionContext

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

Returns

IAsyncResult

IAsyncResult which represent an async operation.

InvokeAsyncCallback(IAsyncExecutionContext)

Captures the overall execution time and logs final metrics.

protected override void InvokeAsyncCallback(IAsyncExecutionContext executionContext)

Parameters

executionContext IAsyncExecutionContext

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

InvokeSync(IExecutionContext)

Captures the overall execution time and logs final metrics.

public override void InvokeSync(IExecutionContext executionContext)

Parameters

executionContext IExecutionContext

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