4 writes to Protocols
Aspire.Dashboard.Tests (1)
Integration\DashboardClientAuthTests.cs (1)
100options.Protocols = HttpProtocols.Http2;
Aspire.Hosting (1)
Dashboard\DashboardServiceHost.cs (1)
158options.Protocols = HttpProtocols.Http2;
Microsoft.AspNetCore.Server.Kestrel.Core (2)
KestrelConfigurationLoader.cs (2)
245listenOptions.Protocols = defaults.Protocols.Value; 374listenOptions.Protocols = endpoint.Protocols.Value;
18 references to Protocols
Aspire.Dashboard (2)
DashboardWebApplication.cs (2)
728""", name, address, string.Join(", ", connectionTypes), endpointConfiguration.IsHttps, endpointConfiguration.ListenOptions.Protocols); 730if (!endpointConfiguration.IsHttps && connectionTypes.Contains(ConnectionType.Frontend) && endpointConfiguration.ListenOptions.Protocols == HttpProtocols.Http2)
Microsoft.AspNetCore.Server.Kestrel.Core (14)
DirectTlsEndpointOptions.cs (1)
146/// sourced from <see cref="ListenOptions.Protocols"/> after the endpoint has been configured.
Internal\KestrelServerImpl.cs (6)
141var hasHttp1 = options.Protocols.HasFlag(HttpProtocols.Http1); 142var hasHttp2 = options.Protocols.HasFlag(HttpProtocols.Http2); 143var hasHttp3 = options.Protocols.HasFlag(HttpProtocols.Http3); 189|| options.Protocols == HttpProtocols.None) // TODO a test fails because it doesn't throw an exception in the right place 197options.UseHttpServer(ServiceContext, application, options.Protocols, addAltSvcHeader); 216options.UseHttp3Server(ServiceContext, application, options.Protocols, addAltSvcHeader);
KestrelServerOptions.cs (2)
381writer.WriteString(nameof(listenOptions.Protocols), listenOptions.Protocols.ToString());
ListenOptions.cs (2)
110/// Tracks whether <see cref="Protocols"/> has been set explicitly so that we can determine whether 119/// The "Alt-Svc" header is automatically included with a response if <see cref="Protocols"/> has either
ListenOptionsHttpsExtensions.cs (2)
206var middleware = new HttpsConnectionMiddleware(next, httpsOptions, listenOptions.Protocols, loggerFactory, metrics); 271callbackOptions.HttpProtocols = listenOptions.Protocols;
TlsConfigurationLoader.cs (1)
113httpsOptions, listenOptions.Protocols, _httpsLogger);
Microsoft.AspNetCore.Server.Kestrel.Transport.DirectTls (2)
DirectTlsEndpointProtocolsSetup.cs (2)
10/// Copies each <see cref="DirectTlsEndpoint"/>'s configured <see cref="ListenOptions.Protocols"/> onto the 25directTlsEndpoint.Options.HttpProtocols = listenOptions.Protocols;