Class EndpointResolver
This handler resolves the endpoint to be used for the current request.
public class EndpointResolver : PipelineHandler, IPipelineHandler
- Inheritance
-
EndpointResolver
- Implements
- Inherited Members
Constructors
EndpointResolver()
public EndpointResolver()
Methods
DetermineEndpoint(IClientConfig, IRequest)
public static Uri DetermineEndpoint(IClientConfig config, IRequest request)
Parameters
configIClientConfigrequestIRequest
Returns
- Uri
DetermineEndpoint(IRequestContext)
Determines the endpoint for the request.
public virtual Uri DetermineEndpoint(IRequestContext requestContext)
Parameters
requestContextIRequestContextThe request context.
Returns
- Uri
InvokeAsync<T>(IExecutionContext)
Calls pre invoke logic before calling the next handler in the pipeline.
public override Task<T> InvokeAsync<T>(IExecutionContext executionContext) where T : AmazonWebServiceResponse, new()
Parameters
executionContextIExecutionContextThe execution context, it contains the request and response context.
Returns
- Task<T>
A task that represents the asynchronous operation.
Type Parameters
TThe response type for the current request.
InvokeSync(IExecutionContext)
Calls pre invoke logic before calling the next handler in the pipeline.
public override void InvokeSync(IExecutionContext executionContext)
Parameters
executionContextIExecutionContextThe execution context which contains both the requests and response context.
PreInvoke(IExecutionContext)
Resolves the endpoint to be used for the current request before invoking the next handler.
protected void PreInvoke(IExecutionContext executionContext)
Parameters
executionContextIExecutionContextThe execution context, it contains the request and response context.