24 references to ConnectionType
Aspire.Dashboard (20)
Authentication\Connection\ConnectionTypeAuthenticationHandler.cs (1)
42
public HashSet<
ConnectionType
> RequiredConnectionTypes { get; set; } = [];
Authentication\Connection\ConnectionTypeMiddleware.cs (3)
15
private readonly List<
ConnectionType
> _connectionTypes;
18
public ConnectionTypeMiddleware(
ConnectionType
[] connectionTypes, ConnectionDelegate next)
32
public required List<
ConnectionType
> ConnectionTypes { get; init; }
Authentication\Connection\IConnectionTypeFeature.cs (1)
11
List<
ConnectionType
> ConnectionTypes { get; }
Authentication\Connection\ListenOptionsConnectionTypeExtensions.cs (1)
10
public static void UseConnectionTypes(this ListenOptions listenOptions, IEnumerable<
ConnectionType
> connectionTypes)
Configuration\EndpointInfo.cs (2)
9
public record EndpointInfo(string Name, BindingAddress Address, HttpProtocols? HttpProtocols, bool RequireCertificate,
ConnectionType
ConnectionType)
11
public static bool TryAddEndpoint(List<EndpointInfo> configuredEndpoints, BindingAddress? address, string name, HttpProtocols? httpProtocols, bool requireCertificate,
ConnectionType
connectionType)
DashboardWebApplication.cs (11)
661
EndpointInfo.TryAddEndpoint(endpoints, fontendUrl, name, httpProtocols: null, requireCertificate: false, connectionType:
ConnectionType
.Frontend);
663
EndpointInfo.TryAddEndpoint(endpoints, dashboardOptions.Otlp.GetGrpcEndpointAddress(), "OtlpGrpc", httpProtocols: HttpProtocols.Http2, requireCertificate: dashboardOptions.Otlp.AuthMode == OtlpAuthMode.ClientCertificate, connectionType:
ConnectionType
.OtlpGrpc);
664
EndpointInfo.TryAddEndpoint(endpoints, dashboardOptions.Otlp.GetHttpEndpointAddress(), "OtlpHttp", httpProtocols: HttpProtocols.Http1AndHttp2, requireCertificate: dashboardOptions.Otlp.AuthMode == OtlpAuthMode.ClientCertificate, connectionType:
ConnectionType
.OtlpHttp);
730
if (!endpointConfiguration.IsHttps && connectionTypes.Contains(
ConnectionType
.Frontend) && endpointConfiguration.ListenOptions.Protocols == HttpProtocols.Http2)
737
foreach (
var
connectionType in connectionTypes)
741
case
ConnectionType
.Frontend:
746
case
ConnectionType
.OtlpGrpc:
749
case
ConnectionType
.OtlpHttp:
792
.AddScheme<ConnectionTypeAuthenticationHandlerOptions, ConnectionTypeAuthenticationHandler>(ConnectionTypeAuthenticationDefaults.AuthenticationSchemeFrontend, o => o.RequiredConnectionTypes = [
ConnectionType
.Frontend])
793
.AddScheme<ConnectionTypeAuthenticationHandlerOptions, ConnectionTypeAuthenticationHandler>(ConnectionTypeAuthenticationDefaults.AuthenticationSchemeOtlp, o => o.RequiredConnectionTypes = [
ConnectionType
.OtlpGrpc,
ConnectionType
.OtlpHttp])
Model\BrowserSecurityHeadersMiddleware.cs (1)
67
if (feature == null || feature.ConnectionTypes.Contains(
ConnectionType
.Frontend))
Aspire.Dashboard.Tests (4)
BrowserSecurityHeadersMiddlewareTests.cs (4)
66
[InlineData(
ConnectionType
.OtlpGrpc)]
67
[InlineData(
ConnectionType
.OtlpHttp)]
68
public async Task InvokeAsync_Otlp_NotAdded(
ConnectionType
connectionType)
84
public required List<
ConnectionType
> ConnectionTypes { get; init; }