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)
545
endpointConfiguration.ListenOptions.UseConnectionTypes([
ConnectionType
.Frontend]);
555
var connectionTypes = new List<
ConnectionType
> {
ConnectionType
.Otlp };
569
connectionTypes.Add(
ConnectionType
.Frontend);
587
var connectionTypes = new List<
ConnectionType
> {
ConnectionType
.Otlp };
601
connectionTypes.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)
67
if (feature == null || !feature.ConnectionTypes.Contains(
ConnectionType
.Otlp))
Aspire.Dashboard.Tests (1)
BrowserSecurityHeadersMiddlewareTests.cs (1)
71
httpContext.Features.Set<IConnectionTypeFeature>(new TestConnectionTypeFeature { ConnectionTypes = [
ConnectionType
.Otlp] });