public HttpRequest(string uri, HttpMethod method, System.Net.Http.HttpClient client, CancellationToken cancellationtoken = default(CancellationToken)) { Message = new HttpRequestMessage(method, uri); Client = client; QueryParameters = new List <HttpQueryParameter>(); MiddlewareTypes = new List <Type>(); Tracing = new HttpTracingContext(Guid.NewGuid().ToString(), string.Empty, string.Empty); Context = new Dictionary <string, object>(); DisposeClient = false; CancellationToken = cancellationtoken; }
public IHttpDescriptor WithTracing(HttpTracingContext identity) { _httpcontext.Request.Tracing = identity; return(this); }