Class CSMCallAttemptHandler
The CSM handler has the logic for capturing data for CSM attempts when enabled.
public class CSMCallAttemptHandler : PipelineHandler, IPipelineHandler
- Inheritance
-
CSMCallAttemptHandler
- Implements
- Inherited Members
Constructors
CSMCallAttemptHandler()
public CSMCallAttemptHandler()
Methods
CSMCallAttemptMetricsCapture(IRequestContext, IResponseContext)
Method that gets called in the final clause that captures data for each http request from the request and response context.
protected static void CSMCallAttemptMetricsCapture(IRequestContext requestContext, IResponseContext responseContext)
Parameters
requestContext
IRequestContextresponseContext
IResponseContext
InvokeAsync<T>(IExecutionContext)
Calls the PreInvoke and PostInvoke methods before and after calling the next handler in the pipeline.
public override Task<T> InvokeAsync<T>(IExecutionContext executionContext) where T : AmazonWebServiceResponse, new()
Parameters
executionContext
IExecutionContext
Returns
- Task<T>
Type Parameters
T
InvokeSync(IExecutionContext)
Invokes the CSM handler and captures data for the CSM attempts.
public override void InvokeSync(IExecutionContext executionContext)
Parameters
executionContext
IExecutionContext
PreInvoke(IExecutionContext)
Executes the OnPreInvoke action as part of pre-invoke.
protected virtual void PreInvoke(IExecutionContext executionContext)
Parameters
executionContext
IExecutionContext