Class AmazonServiceClient
public abstract class AmazonServiceClient : IDisposable
- Inheritance
-
AmazonServiceClient
- Implements
- Inherited Members
Constructors
AmazonServiceClient(AWSCredentials, ClientConfig)
protected AmazonServiceClient(AWSCredentials credentials, ClientConfig config)
Parameters
credentials
AWSCredentialsconfig
ClientConfig
AmazonServiceClient(string, string, ClientConfig)
protected AmazonServiceClient(string awsAccessKeyId, string awsSecretAccessKey, ClientConfig config)
Parameters
awsAccessKeyId
stringawsSecretAccessKey
stringconfig
ClientConfig
AmazonServiceClient(string, string, string, ClientConfig)
protected AmazonServiceClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, ClientConfig config)
Parameters
awsAccessKeyId
stringawsSecretAccessKey
stringawsSessionToken
stringconfig
ClientConfig
Properties
Config
public IClientConfig Config { get; }
Property Value
Credentials
protected AWSCredentials Credentials { get; }
Property Value
EndpointDiscoveryResolver
protected EndpointDiscoveryResolverBase EndpointDiscoveryResolver { get; }
Property Value
RuntimePipeline
protected RuntimePipeline RuntimePipeline { get; set; }
Property Value
ServiceMetadata
protected virtual IServiceMetadata ServiceMetadata { get; }
Property Value
Signer
protected AbstractAWSSigner Signer { get; }
Property Value
SupportResponseLogging
protected virtual bool SupportResponseLogging { get; }
Property Value
Methods
BeginInvoke(AmazonWebServiceRequest, InvokeOptionsBase, AsyncCallback, object)
protected IAsyncResult BeginInvoke(AmazonWebServiceRequest request, InvokeOptionsBase options, AsyncCallback callback, object state)
Parameters
request
AmazonWebServiceRequestoptions
InvokeOptionsBasecallback
AsyncCallbackstate
object
Returns
BeginInvoke<TRequest>(TRequest, IMarshaller<IRequest, AmazonWebServiceRequest>, ResponseUnmarshaller, AsyncCallback, object)
[Obsolete("BeginInvoke taking marshallers is obsolete. Use BeginInvoke taking InvokeOptionsBase instead.")]
protected IAsyncResult BeginInvoke<TRequest>(TRequest request, IMarshaller<IRequest, AmazonWebServiceRequest> marshaller, ResponseUnmarshaller unmarshaller, AsyncCallback callback, object state) where TRequest : AmazonWebServiceRequest
Parameters
request
TRequestmarshaller
IMarshaller<IRequest, AmazonWebServiceRequest>unmarshaller
ResponseUnmarshallercallback
AsyncCallbackstate
object
Returns
Type Parameters
TRequest
ComposeUrl(IRequest)
public static Uri ComposeUrl(IRequest iRequest)
Parameters
iRequest
IRequest
Returns
- Uri
CreateSigner()
protected abstract AbstractAWSSigner CreateSigner()
Returns
CustomizeRuntimePipeline(RuntimePipeline)
protected virtual void CustomizeRuntimePipeline(RuntimePipeline pipeline)
Parameters
pipeline
RuntimePipeline
Dispose()
public void Dispose()
Dispose(bool)
protected virtual void Dispose(bool disposing)
Parameters
disposing
bool
EndInvoke<TResponse>(IAsyncResult)
protected static TResponse EndInvoke<TResponse>(IAsyncResult result) where TResponse : AmazonWebServiceResponse
Parameters
result
IAsyncResult
Returns
- TResponse
Type Parameters
TResponse
EndpointOperation(EndpointOperationContextBase)
protected virtual IEnumerable<DiscoveryEndpointBase> EndpointOperation(EndpointOperationContextBase context)
Parameters
context
EndpointOperationContextBase
Returns
Initialize()
protected virtual void Initialize()
Invoke<TResponse>(AmazonWebServiceRequest, InvokeOptionsBase)
protected TResponse Invoke<TResponse>(AmazonWebServiceRequest request, InvokeOptionsBase options) where TResponse : AmazonWebServiceResponse
Parameters
request
AmazonWebServiceRequestoptions
InvokeOptionsBase
Returns
- TResponse
Type Parameters
TResponse
Invoke<TRequest, TResponse>(TRequest, IMarshaller<IRequest, AmazonWebServiceRequest>, ResponseUnmarshaller)
[Obsolete("Invoke taking marshallers is obsolete. Use Invoke taking InvokeOptionsBase instead.")]
protected TResponse Invoke<TRequest, TResponse>(TRequest request, IMarshaller<IRequest, AmazonWebServiceRequest> marshaller, ResponseUnmarshaller unmarshaller) where TRequest : AmazonWebServiceRequest where TResponse : AmazonWebServiceResponse
Parameters
request
TRequestmarshaller
IMarshaller<IRequest, AmazonWebServiceRequest>unmarshaller
ResponseUnmarshaller
Returns
- TResponse
Type Parameters
TRequest
TResponse
ProcessExceptionHandlers(IExecutionContext, Exception)
protected virtual void ProcessExceptionHandlers(IExecutionContext executionContext, Exception exception)
Parameters
executionContext
IExecutionContextexception
Exception
ProcessPreRequestHandlers(IExecutionContext)
protected void ProcessPreRequestHandlers(IExecutionContext executionContext)
Parameters
executionContext
IExecutionContext
ProcessRequestHandlers(IExecutionContext)
protected void ProcessRequestHandlers(IExecutionContext executionContext)
Parameters
executionContext
IExecutionContext
ProcessResponseHandlers(IExecutionContext)
protected void ProcessResponseHandlers(IExecutionContext executionContext)
Parameters
executionContext
IExecutionContext
Events
AfterResponseEvent
Occurs after a response is received from the service.
public event ResponseEventHandler AfterResponseEvent
Event Type
BeforeRequestEvent
Occurs before a request is issued against the service.
public event RequestEventHandler BeforeRequestEvent
Event Type
ExceptionEvent
Occurs after an exception is encountered.
public event ExceptionEventHandler ExceptionEvent