84 instantiations of HttpConnectionDispatcherOptions
Microsoft.AspNetCore.Http.Connections (3)
ConnectionEndpointRouteBuilderExtensions.cs (2)
29endpoints.MapConnections(pattern, new HttpConnectionDispatcherOptions(), configure); 53var options = new HttpConnectionDispatcherOptions();
Internal\HttpConnectionManager.cs (1)
56return CreateConnection(new());
Microsoft.AspNetCore.Http.Connections.Tests (80)
HttpConnectionDispatcherTests.cs (75)
69await dispatcher.ExecuteNegotiateAsync(context, new HttpConnectionDispatcherOptions()); 94await dispatcher.ExecuteNegotiateAsync(context, new HttpConnectionDispatcherOptions()); 120var options = new HttpConnectionDispatcherOptions { TransportMaxBufferSize = 4, ApplicationMaxBufferSize = 4 }; 157var options = new HttpConnectionDispatcherOptions { TransportMaxBufferSize = 4, ApplicationMaxBufferSize = 4 }; 185var options = new HttpConnectionDispatcherOptions { TransportMaxBufferSize = 4, ApplicationMaxBufferSize = 4, MinimumProtocolVersion = 1 }; 206var options = new HttpConnectionDispatcherOptions(); 239var executeTask = dispatcher.ExecuteAsync(context, new HttpConnectionDispatcherOptions(), app); 272await dispatcher.ExecuteNegotiateAsync(context, new HttpConnectionDispatcherOptions { Transports = transports }); 318await dispatcher.ExecuteAsync(context, new HttpConnectionDispatcherOptions(), app); 359await dispatcher.ExecuteAsync(context, new HttpConnectionDispatcherOptions(), app); 397await dispatcher.ExecuteAsync(context, new HttpConnectionDispatcherOptions(), app); 436await dispatcher.ExecuteAsync(context, new HttpConnectionDispatcherOptions(), app); 486var task = dispatcher.ExecuteAsync(context, new HttpConnectionDispatcherOptions(), app); 550var task = dispatcher.ExecuteAsync(context, new HttpConnectionDispatcherOptions(), app); 610await dispatcher.ExecuteAsync(context, new HttpConnectionDispatcherOptions(), app); 671await dispatcher.ExecuteAsync(context, new HttpConnectionDispatcherOptions(), app); 724var options = new HttpConnectionDispatcherOptions(); 789var task = dispatcher.ExecuteAsync(context, new HttpConnectionDispatcherOptions(), app); 793task = dispatcher.ExecuteAsync(context, new HttpConnectionDispatcherOptions(), app); 867await dispatcher.ExecuteAsync(context, new HttpConnectionDispatcherOptions(), app); 913await dispatcher.ExecuteAsync(context, new HttpConnectionDispatcherOptions(), c => Task.CompletedTask); 941await dispatcher.ExecuteAsync(context, new HttpConnectionDispatcherOptions(), app); 1015await dispatcher.ExecuteAsync(context, new HttpConnectionDispatcherOptions(), app); 1047await dispatcher.ExecuteAsync(context, new HttpConnectionDispatcherOptions(), app); 1075await dispatcher.ExecuteAsync(context, new HttpConnectionDispatcherOptions(), app); 1078await dispatcher.ExecuteAsync(context, new HttpConnectionDispatcherOptions(), app); 1111await dispatcher.ExecuteAsync(context, new HttpConnectionDispatcherOptions(), app); 1114await dispatcher.ExecuteAsync(context, new HttpConnectionDispatcherOptions(), app); 1147await dispatcher.ExecuteAsync(context, new HttpConnectionDispatcherOptions(), app); 1153await dispatcher.ExecuteAsync(context, new HttpConnectionDispatcherOptions(), app); 1197var options = new HttpConnectionDispatcherOptions(); 1292var options = new HttpConnectionDispatcherOptions(); 1334var options = new HttpConnectionDispatcherOptions(); 1377var options = new HttpConnectionDispatcherOptions(); 1418var options = new HttpConnectionDispatcherOptions(); 1450var options = new HttpConnectionDispatcherOptions(); 1493var options = new HttpConnectionDispatcherOptions(); 1558var options = new HttpConnectionDispatcherOptions(); 1622var options = new HttpConnectionDispatcherOptions(); 1652var options = new HttpConnectionDispatcherOptions(); 1687var options = new HttpConnectionDispatcherOptions(); 1721var options = new HttpConnectionDispatcherOptions(); 1761var options = new HttpConnectionDispatcherOptions(); 1811var options = new HttpConnectionDispatcherOptions(); 1850var options = new HttpConnectionDispatcherOptions(); 1902var options = new HttpConnectionDispatcherOptions(); 1950var options = new HttpConnectionDispatcherOptions(); 1994var options = new HttpConnectionDispatcherOptions(); 2028var options = new HttpConnectionDispatcherOptions(); 2067var options = new HttpConnectionDispatcherOptions(); 2120var options = new HttpConnectionDispatcherOptions(); 2156var options = new HttpConnectionDispatcherOptions 2230var options = new HttpConnectionDispatcherOptions(); 2274await dispatcher.ExecuteNegotiateAsync(context, new HttpConnectionDispatcherOptions { Transports = HttpTransportType.WebSockets }); 2300await dispatcher.ExecuteNegotiateAsync(context, new HttpConnectionDispatcherOptions { AllowStatefulReconnects = false }); 2329await dispatcher.ExecuteNegotiateAsync(context, new HttpConnectionDispatcherOptions { AllowStatefulReconnects = true }); 2358await dispatcher.ExecuteNegotiateAsync(context, new HttpConnectionDispatcherOptions { AllowStatefulReconnects = true }); 2376var options = new HttpConnectionDispatcherOptions() { AllowStatefulReconnects = true }; 2451var options = new HttpConnectionDispatcherOptions() { AllowStatefulReconnects = true }; 2543var options = new HttpConnectionDispatcherOptions 2606var options = new HttpConnectionDispatcherOptions 2663var options = new HttpConnectionDispatcherOptions 2737var options = new HttpConnectionDispatcherOptions(); 2762var options = new HttpConnectionDispatcherOptions 2829var options = new HttpConnectionDispatcherOptions(); 2856var options = new HttpConnectionDispatcherOptions(); 2886var options = new HttpConnectionDispatcherOptions(); 2935var options = new HttpConnectionDispatcherOptions(); 2967var options = new HttpConnectionDispatcherOptions(); 3024var options = new HttpConnectionDispatcherOptions(); 3079var options = new HttpConnectionDispatcherOptions(); 3127_ = dispatcher.ExecuteAsync(context, new HttpConnectionDispatcherOptions(), app); 3146var options = new HttpConnectionDispatcherOptions() { CloseOnAuthenticationExpiration = true }; 3570var options = new HttpConnectionDispatcherOptions(); 3709var options = new HttpConnectionDispatcherOptions();
HttpConnectionManagerTests.cs (4)
26var options = new HttpConnectionDispatcherOptions(); 37var httpOptions = new HttpConnectionDispatcherOptions(); 204var connection = connectionManager.CreateConnection(new(), negotiateVersion: 0); 225var connection = connectionManager.CreateConnection(new(), negotiateVersion: 1);
LongPollingTests.cs (1)
116var options = new HttpConnectionDispatcherOptions();
Microsoft.AspNetCore.SignalR (1)
HubEndpointRouteBuilderExtensions.cs (1)
49var options = new HttpConnectionDispatcherOptions();
72 references to HttpConnectionDispatcherOptions
Microsoft.AspNetCore.Components.Server (2)
Builder\ComponentEndpointRouteBuilderExtensions.cs (2)
52Action<HttpConnectionDispatcherOptions> configureOptions) 70Action<HttpConnectionDispatcherOptions> configureOptions)
Microsoft.AspNetCore.Http.Connections (14)
ConnectionEndpointRouteBuilderExtensions.cs (3)
51public static ConnectionEndpointRouteBuilder MapConnectionHandler<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TConnectionHandler>(this IEndpointRouteBuilder endpoints, [StringSyntax("Route")] string pattern, Action<HttpConnectionDispatcherOptions>? configureOptions) where TConnectionHandler : ConnectionHandler 53var options = new HttpConnectionDispatcherOptions(); 83public static ConnectionEndpointRouteBuilder MapConnections(this IEndpointRouteBuilder endpoints, [StringSyntax("Route")] string pattern, HttpConnectionDispatcherOptions options, Action<IConnectionBuilder> configure)
HttpConnectionDispatcherOptions.cs (1)
27/// Initializes a new instance of the <see cref="HttpConnectionDispatcherOptions"/> class.
Internal\HttpConnectionContext.cs (2)
38private readonly HttpConnectionDispatcherOptions _options; 69IDuplexPipe transport, IDuplexPipe application, HttpConnectionDispatcherOptions options, bool useStatefulReconnect)
Internal\HttpConnectionDispatcher.cs (7)
61public async Task ExecuteAsync(HttpContext context, HttpConnectionDispatcherOptions options, ConnectionDelegate connectionDelegate) 102public async Task ExecuteNegotiateAsync(HttpContext context, HttpConnectionDispatcherOptions options) 121private async Task ExecuteAsync(HttpContext context, ConnectionDelegate connectionDelegate, HttpConnectionDispatcherOptions options, ConnectionLogScope logScope) 336private async Task ProcessNegotiate(HttpContext context, HttpConnectionDispatcherOptions options, ConnectionLogScope logScope) 406private static void WriteNegotiatePayload(IBufferWriter<byte> writer, string? connectionId, string? connectionToken, HttpContext context, HttpConnectionDispatcherOptions options, 800private async Task<HttpConnectionContext?> GetOrCreateConnectionAsync(HttpContext context, HttpConnectionDispatcherOptions options) 822private HttpConnectionContext CreateConnection(HttpConnectionDispatcherOptions options, int clientProtocolVersion = 0, bool useStatefulReconnect = false)
Internal\HttpConnectionManager.cs (1)
63internal HttpConnectionContext CreateConnection(HttpConnectionDispatcherOptions options, int negotiateVersion = 0, bool useStatefulReconnect = false)
Microsoft.AspNetCore.Http.Connections.Tests (53)
HttpConnectionDispatcherTests.cs (45)
120var options = new HttpConnectionDispatcherOptions { TransportMaxBufferSize = 4, ApplicationMaxBufferSize = 4 }; 157var options = new HttpConnectionDispatcherOptions { TransportMaxBufferSize = 4, ApplicationMaxBufferSize = 4 }; 185var options = new HttpConnectionDispatcherOptions { TransportMaxBufferSize = 4, ApplicationMaxBufferSize = 4, MinimumProtocolVersion = 1 }; 206var options = new HttpConnectionDispatcherOptions(); 724var options = new HttpConnectionDispatcherOptions(); 1197var options = new HttpConnectionDispatcherOptions(); 1292var options = new HttpConnectionDispatcherOptions(); 1334var options = new HttpConnectionDispatcherOptions(); 1377var options = new HttpConnectionDispatcherOptions(); 1418var options = new HttpConnectionDispatcherOptions(); 1450var options = new HttpConnectionDispatcherOptions(); 1493var options = new HttpConnectionDispatcherOptions(); 1558var options = new HttpConnectionDispatcherOptions(); 1622var options = new HttpConnectionDispatcherOptions(); 1652var options = new HttpConnectionDispatcherOptions(); 1687var options = new HttpConnectionDispatcherOptions(); 1721var options = new HttpConnectionDispatcherOptions(); 1761var options = new HttpConnectionDispatcherOptions(); 1811var options = new HttpConnectionDispatcherOptions(); 1850var options = new HttpConnectionDispatcherOptions(); 1902var options = new HttpConnectionDispatcherOptions(); 1950var options = new HttpConnectionDispatcherOptions(); 1994var options = new HttpConnectionDispatcherOptions(); 2028var options = new HttpConnectionDispatcherOptions(); 2067var options = new HttpConnectionDispatcherOptions(); 2120var options = new HttpConnectionDispatcherOptions(); 2156var options = new HttpConnectionDispatcherOptions 2230var options = new HttpConnectionDispatcherOptions(); 2376var options = new HttpConnectionDispatcherOptions() { AllowStatefulReconnects = true }; 2451var options = new HttpConnectionDispatcherOptions() { AllowStatefulReconnects = true }; 2543var options = new HttpConnectionDispatcherOptions 2606var options = new HttpConnectionDispatcherOptions 2663var options = new HttpConnectionDispatcherOptions 2737var options = new HttpConnectionDispatcherOptions(); 2762var options = new HttpConnectionDispatcherOptions 2829var options = new HttpConnectionDispatcherOptions(); 2856var options = new HttpConnectionDispatcherOptions(); 2886var options = new HttpConnectionDispatcherOptions(); 2935var options = new HttpConnectionDispatcherOptions(); 2967var options = new HttpConnectionDispatcherOptions(); 3024var options = new HttpConnectionDispatcherOptions(); 3079var options = new HttpConnectionDispatcherOptions(); 3146var options = new HttpConnectionDispatcherOptions() { CloseOnAuthenticationExpiration = true }; 3570var options = new HttpConnectionDispatcherOptions(); 3709var options = new HttpConnectionDispatcherOptions();
HttpConnectionManagerTests.cs (2)
26var options = new HttpConnectionDispatcherOptions(); 37var httpOptions = new HttpConnectionDispatcherOptions();
LongPollingTests.cs (1)
116var options = new HttpConnectionDispatcherOptions();
MapConnectionHandlerTests.cs (5)
305var optionsMetaData = endpoint.Metadata.GetMetadata<HttpConnectionDispatcherOptions>(); 341var optionsMetaData = endpoint.Metadata.GetMetadata<HttpConnectionDispatcherOptions>(); 505private IHost BuildWebHost<TConnectionHandler>(string path, Action<HttpConnectionDispatcherOptions> configureOptions, Action<IEndpointConventionBuilder> configureEndpoints = null) where TConnectionHandler : ConnectionHandler
Microsoft.AspNetCore.SignalR (2)
HubEndpointRouteBuilderExtensions.cs (2)
39public static HubEndpointConventionBuilder MapHub<[DynamicallyAccessedMembers(HubAccessibility)] THub>(this IEndpointRouteBuilder endpoints, [StringSyntax("Route")] string pattern, Action<HttpConnectionDispatcherOptions>? configureOptions) where THub : Hub 49var options = new HttpConnectionDispatcherOptions();
Microsoft.AspNetCore.SignalR.Tests (1)
MapSignalRTests.cs (1)
236HttpConnectionDispatcherOptions configuredOptions = null;