16 references to ConnectionType
Aspire.Dashboard (15)
Authentication\Connection\ConnectionTypeAuthenticationHandler.cs (1)
42
public
ConnectionType
RequiredConnectionType { get; set; }
Authentication\Connection\ConnectionTypeMiddleware.cs (2)
15
private readonly List<
ConnectionType
> _connectionTypes;
18
public ConnectionTypeMiddleware(
ConnectionType
[] connectionTypes, ConnectionDelegate next)
Authentication\Connection\IConnectionTypeFeature.cs (1)
11
List<
ConnectionType
> ConnectionTypes { get; }
Authentication\Connection\ListenOptionsConnectionTypeExtensions.cs (1)
10
public static void UseConnectionTypes(this ListenOptions listenOptions,
ConnectionType
[] connectionTypes)
DashboardWebApplication.cs (9)
572
endpointConfiguration.ListenOptions.UseConnectionTypes([
ConnectionType
.Frontend]);
582
var connectionTypes = new List<
ConnectionType
> {
ConnectionType
.Otlp };
596
connectionTypes.Add(
ConnectionType
.Frontend);
614
var connectionTypes = new List<
ConnectionType
> {
ConnectionType
.Otlp };
628
connectionTypes.Add(
ConnectionType
.Frontend);
671
.AddScheme<ConnectionTypeAuthenticationHandlerOptions, ConnectionTypeAuthenticationHandler>(ConnectionTypeAuthenticationDefaults.AuthenticationSchemeFrontend, o => o.RequiredConnectionType =
ConnectionType
.Frontend)
672
.AddScheme<ConnectionTypeAuthenticationHandlerOptions, ConnectionTypeAuthenticationHandler>(ConnectionTypeAuthenticationDefaults.AuthenticationSchemeOtlp, o => o.RequiredConnectionType =
ConnectionType
.Otlp)
Model\BrowserSecurityHeadersMiddleware.cs (1)
67
if (feature == null || !feature.ConnectionTypes.Contains(
ConnectionType
.Otlp))
Aspire.Dashboard.Tests (1)
BrowserSecurityHeadersMiddlewareTests.cs (1)
70
httpContext.Features.Set<IConnectionTypeFeature>(new TestConnectionTypeFeature { ConnectionTypes = [
ConnectionType
.Otlp] });