Class AmazonS3ExceptionHandler
Custom pipeline handler to clean up streams in case of an exception.
public class AmazonS3ExceptionHandler : PipelineHandler
- Inheritance
-
AmazonS3ExceptionHandler
Constructors
AmazonS3ExceptionHandler()
public AmazonS3ExceptionHandler()
Methods
HandleException(IExecutionContext, Exception)
Catch exceptions and clean up any open streams.
protected virtual void HandleException(IExecutionContext executionContext, Exception exception)
Parameters
executionContext
IExecutionContextexception
Exception
InvokeAsync<T>(IExecutionContext)
public override Task<T> InvokeAsync<T>(IExecutionContext executionContext) where T : AmazonWebServiceResponse, new()
Parameters
executionContext
IExecutionContext
Returns
- Task<T>
Type Parameters
T
InvokeSync(IExecutionContext)
Catch exceptions and clean up any open streams.
public override void InvokeSync(IExecutionContext executionContext)
Parameters
executionContext
IExecutionContext