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