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 = ProtocolHelper.GetHttpProtocol(msg.Version); #if NET var versionPolicy = ProtocolHelper.GetVersionPolicy(msg.VersionPolicy); #else var versionPolicy = "RequestVersionOrLower"; #endif _proxying(logger, msg.RequestUri !.AbsoluteUri, version, versionPolicy, streaming, null); } }