Esempio n. 1
0
            protected override Task <HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
            {
                foreach (var prop in Properties)
                {
                    _tracer.Log(prop.Key, prop.Value.ToString());
                }

                return(base.SendAsync(request, cancellationToken));
            }
Esempio n. 2
0
 protected override Task <HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
 {
     _tracer.Log(nameof(CustomDelegatingHandler2), nameof(SendAsync));
     return(base.SendAsync(request, cancellationToken));
 }