7 references to Constants
Microsoft.AspNetCore.Http.Connections.Client (6)
HttpConnection.cs (3)
644if (string.Equals(header.Key, Constants.UserAgent, StringComparison.OrdinalIgnoreCase)) 673httpClient.DefaultRequestHeaders.Add(Constants.UserAgent, Constants.UserAgentHeader);
Internal\Constants.cs (2)
19var assemblyVersion = typeof(Constants) 29return ConstructUserAgent(typeof(Constants).Assembly.GetName().Version!, assemblyVersion.InformationalVersion, GetOS(), runtime, runtimeVersion);
Internal\WebSocketsTransport.cs (1)
101webSocket.Options.SetRequestHeader("User-Agent", Constants.UserAgentHeader.ToString());
Microsoft.AspNetCore.SignalR.Tests (1)
UserAgentHeaderTest.cs (1)
19Assert.Equal(testData.Expected, Constants.ConstructUserAgent(testData.Version, testData.DetailedVersion, testData.Os, testData.Runtime, testData.RuntimeVersion));