Class MetricsHandler
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
IAsyncExecutionContextThe 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
IAsyncExecutionContextThe 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
IExecutionContextThe execution context which contains both the requests and response context.