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)
572endpointConfiguration.ListenOptions.UseConnectionTypes([ConnectionType.Frontend]); 582var connectionTypes = new List<ConnectionType> { ConnectionType.Otlp }; 596connectionTypes.Add(ConnectionType.Frontend); 614var connectionTypes = new List<ConnectionType> { ConnectionType.Otlp }; 628connectionTypes.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)
67if (feature == null || !feature.ConnectionTypes.Contains(ConnectionType.Otlp))
Aspire.Dashboard.Tests (1)
BrowserSecurityHeadersMiddlewareTests.cs (1)
70httpContext.Features.Set<IConnectionTypeFeature>(new TestConnectionTypeFeature { ConnectionTypes = [ConnectionType.Otlp] });