public void ExecuteAsync(IClientHttpRequestAsyncExecution execution)
 {
     execution.ExecuteAsync(
         delegate(IClientHttpResponseAsyncContext ctx)
     {
         ctx.Response = new ResponseMock();
     });
 }
 // IClientHttpRequestAsyncInterceptor
 public void ExecuteAsync(IClientHttpRequestAsyncExecution execution)
 {
     execution.Headers.Add("BeforeAsyncExecution", "MyValue");
     execution.ExecuteAsync(
         delegate(IClientHttpResponseAsyncContext ctx)
     {
         ctx.Response.Headers.Add("AfterAsyncExecution", "MyValue");
     });
 }
 public void ExecuteAsync(IClientHttpRequestAsyncExecution execution)
 {
     byte[] bytes = Encoding.UTF8.GetBytes("New body");
     execution.Body = delegate(Stream stream)
     {
         stream.Write(bytes, 0, bytes.Length);
     };
     execution.ExecuteAsync();
 }
 public void ExecuteAsync(IClientHttpRequestAsyncExecution execution)
 {
     HandleRequestCounter = ++counter;
     execution.ExecuteAsync(
         delegate(IClientHttpResponseAsyncContext ctx)
     {
         HandleResponseCounter = ++counter;
     });
 }
 public void ExecuteAsync(IClientHttpRequestAsyncExecution execution)
 {
     //execution.ExecuteAsync();
 }
 public void ExecuteAsync(IClientHttpRequestAsyncExecution execution)
 {
     this.invoked = true;
     execution.ExecuteAsync();
 }
 public void ExecuteAsync(IClientHttpRequestAsyncExecution execution)
 {
     HandleRequestCounter = ++counter;
     execution.ExecuteAsync(
         delegate(IClientHttpResponseAsyncContext ctx)
         {
             HandleResponseCounter = ++counter;
         });
 }
 public void ExecuteAsync(IClientHttpRequestAsyncExecution execution)
 {
     execution.ExecuteAsync(
         delegate(IClientHttpResponseAsyncContext ctx)
         {
             ctx.Response = new ResponseMock();
         });
 }
 public void ExecuteAsync(IClientHttpRequestAsyncExecution execution)
 {
     byte[] bytes = Encoding.UTF8.GetBytes("New body");
     execution.Body = delegate(Stream stream)
     {
         stream.Write(bytes, 0, bytes.Length);
     };
     execution.ExecuteAsync();
 }
 // IClientHttpRequestAsyncInterceptor
 public void ExecuteAsync(IClientHttpRequestAsyncExecution execution)
 {
     execution.Headers.Add("BeforeAsyncExecution", "MyValue");
     execution.ExecuteAsync(
         delegate(IClientHttpResponseAsyncContext ctx)
         {
             ctx.Response.Headers.Add("AfterAsyncExecution", "MyValue");
         });
 }
 public void ExecuteAsync(IClientHttpRequestAsyncExecution execution)
 {
     //execution.ExecuteAsync();
 }
 public void ExecuteAsync(IClientHttpRequestAsyncExecution execution)
 {
     this.invoked = true;
     execution.ExecuteAsync();
 }