Exemplo n.º 1
0
 public static void Proxying(ILogger logger, HttpRequestMessage msg, bool isStreamingRequest)
 {
     // Avoid computing the AbsoluteUri unless logging is enabled
     if (logger.IsEnabled(LogLevel.Information))
     {
         var streaming     = isStreamingRequest ? "streaming" : "no-streaming";
         var version       = HttpProtocol.GetHttpProtocol(msg.Version);
         var versionPolicy = ProtocolHelper.GetVersionPolicy(msg.VersionPolicy);
         _proxying(logger, msg.RequestUri !.AbsoluteUri, version, versionPolicy, streaming, null);
     }
 }