// IClientHttpRequestFactoryInterceptor public IClientHttpRequest Create(IClientHttpRequestFactoryCreation creation) { IClientHttpRequest request = creation.Create(); request.Headers.Add("AfterCreation", "MyValue"); return(request); }
public IClientHttpRequest Create(IClientHttpRequestFactoryCreation creation) { string requestUri = creation.Uri.ToString(); if (requestUri.Contains("people/url=")) // ProfileOperations.GetUserProfileByPublicUrl { LeaveDotsAndSlashesEscaped(creation.Uri); } return creation.Create(); }
public IClientHttpRequest Create(IClientHttpRequestFactoryCreation creation) { string requestUri = creation.Uri.ToString(); if (requestUri.Contains("people/url=")) // ProfileOperations.GetUserProfileByPublicUrl { LeaveDotsAndSlashesEscaped(creation.Uri); } return(creation.Create()); }
public IClientHttpRequest Create(IClientHttpRequestFactoryCreation creation) { creation.Method = HttpMethod.POST; return(creation.Create()); }
public IClientHttpRequest Create(IClientHttpRequestFactoryCreation creation) { creation.Uri = new Uri("http://example.com/2"); return(creation.Create()); }
public IClientHttpRequest Create(IClientHttpRequestFactoryCreation creation) { this.invoked = true; return(creation.Create()); }
public IClientHttpRequest Create(IClientHttpRequestFactoryCreation creation) { creation.Method = HttpMethod.POST; return creation.Create(); }
public IClientHttpRequest Create(IClientHttpRequestFactoryCreation creation) { creation.Uri = new Uri("http://example.com/2"); return creation.Create(); }
// IClientHttpRequestFactoryInterceptor public IClientHttpRequest Create(IClientHttpRequestFactoryCreation creation) { IClientHttpRequest request = creation.Create(); request.Headers.Add("AfterCreation", "MyValue"); return request; }
public IClientHttpRequest Create(IClientHttpRequestFactoryCreation creation) { this.invoked = true; return creation.Create(); }