8 references to ServerApplicationNameHeader
Microsoft.AspNetCore.Diagnostics.Middleware (1)
Latency\RequestLatencyTelemetryMiddleware.cs (1)
68
httpContext.Response.Headers[TelemetryConstants.
ServerApplicationNameHeader
] = _applicationName;
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (5)
Latency\RequestLatencyTelemetryMiddlewareTests.cs (5)
44
var header = httpContextMock.Response.Headers[TelemetryConstants.
ServerApplicationNameHeader
];
74
Assert.False(httpContextMock.Response.Headers.TryGetValue(TelemetryConstants.
ServerApplicationNameHeader
, out var val));
98
httpContextMock.Response.Headers.Append(TelemetryConstants.
ServerApplicationNameHeader
, "testValue");
102
var header = httpContextMock.Response.Headers[TelemetryConstants.
ServerApplicationNameHeader
];
133
Assert.False(httpContextMock.Response.Headers.TryGetValue(TelemetryConstants.
ServerApplicationNameHeader
, out var val));
Microsoft.Extensions.Http.Diagnostics (1)
Latency\Internal\HttpClientLatencyLogEnricher.cs (1)
61
if (headers.TryGetValues(TelemetryConstants.
ServerApplicationNameHeader
, out var values))
Microsoft.Extensions.Http.Diagnostics.Tests (1)
Latency\Internal\HttpClientLatencyLogEnricherTest.cs (1)
67
httpResponseMessage.Headers.Add(TelemetryConstants.
ServerApplicationNameHeader
, serverName);