Esempio n. 1
0
 public virtual IAsyncResult InvokeAsync(IAsyncExecutionContext executionContext)
 {
     if (this.InnerHandler != null)
     {
         return(InnerHandler.InvokeAsync(executionContext));
     }
     throw new InvalidOperationException("Cannot invoke InnerHandler. InnerHandler is not set.");
 }
Esempio n. 2
0
 public virtual System.Threading.Tasks.Task <T> InvokeAsync <T>(IExecutionContext executionContext)
     where T : AmazonWebServiceResponse, new()
 {
     if (this.InnerHandler != null)
     {
         return(InnerHandler.InvokeAsync <T>(executionContext));
     }
     throw new InvalidOperationException("Cannot invoke InnerHandler. InnerHandler is not set.");
 }
Esempio n. 3
0
        public virtual async Task InvokeAsync(IExecutionContext executionContext)
        {
            if (this.InnerHandler != null)
            {
                await InnerHandler.InvokeAsync(executionContext).ConfigureAwait(false);

                return;
            }
            throw new InvalidOperationException("Cannot invoke InnerHandler. InnerHandler is not set.");
        }