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