// IClientHttpRequestSyncInterceptor
            public IClientHttpResponse Execute(IClientHttpRequestSyncExecution execution)
            {
                execution.Headers.Add("BeforeSyncExecution", "MyValue");
                IClientHttpResponse response = execution.Execute();

                response.Headers.Add("AfterSyncExecution", "MyValue");
                return(response);
            }
            public IClientHttpResponse Execute(IClientHttpRequestSyncExecution execution)
            {
                HandleRequestCounter = ++counter;
                IClientHttpResponse response = execution.Execute();

                HandleResponseCounter = ++counter;
                return(response);
            }
 public IClientHttpResponse Execute(IClientHttpRequestSyncExecution execution)
 {
     byte[] bytes = Encoding.UTF8.GetBytes("New body");
     execution.Body = delegate(Stream stream)
     {
         stream.Write(bytes, 0, bytes.Length);
     };
     return(execution.Execute());
 }
 public IClientHttpResponse Execute(IClientHttpRequestSyncExecution execution)
 {
     execution.Execute();
     return(new ResponseMock());
 }
 public IClientHttpResponse Execute(IClientHttpRequestSyncExecution execution)
 {
     return(null); //execution.Execute();
 }
 public IClientHttpResponse Execute(IClientHttpRequestSyncExecution execution)
 {
     this.invoked = true;
     return(execution.Execute());
 }
 public IClientHttpResponse Execute(IClientHttpRequestSyncExecution execution)
 {
     HandleRequestCounter = ++counter;
     IClientHttpResponse response = execution.Execute();
     HandleResponseCounter = ++counter;
     return response;
 }
 public IClientHttpResponse Execute(IClientHttpRequestSyncExecution execution)
 {
     execution.Execute();
     return new ResponseMock();
 }
 public IClientHttpResponse Execute(IClientHttpRequestSyncExecution execution)
 {
     byte[] bytes = Encoding.UTF8.GetBytes("New body");
     execution.Body = delegate(Stream stream)
     {
         stream.Write(bytes, 0, bytes.Length);
     };
     return execution.Execute();
 }
 // IClientHttpRequestSyncInterceptor
 public IClientHttpResponse Execute(IClientHttpRequestSyncExecution execution)
 {
     execution.Headers.Add("BeforeSyncExecution", "MyValue");
     IClientHttpResponse response = execution.Execute();
     response.Headers.Add("AfterSyncExecution", "MyValue");
     return response;
 }
 public IClientHttpResponse Execute(IClientHttpRequestSyncExecution execution)
 {
     return null; //execution.Execute();
 }
 public IClientHttpResponse Execute(IClientHttpRequestSyncExecution execution)
 {
     this.invoked = true;
     return execution.Execute();
 }