7 writes to Transports
Microsoft.AspNetCore.Http.Connections (1)
HttpConnectionDispatcherOptions.cs (1)
32Transports = HttpTransports.All;
Microsoft.AspNetCore.Http.Connections.Tests (4)
HttpConnectionDispatcherTests.cs (3)
272await dispatcher.ExecuteNegotiateAsync(context, new HttpConnectionDispatcherOptions { Transports = transports }); 2274await dispatcher.ExecuteNegotiateAsync(context, new HttpConnectionDispatcherOptions { Transports = HttpTransportType.WebSockets }); 3710options.Transports = supportedTransports;
MapConnectionHandlerTests.cs (1)
323options.Transports = HttpTransportType.ServerSentEvents;
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (1)
Startup.cs (1)
105endpoints.MapHub<TestHub>("/default-nowebsockets", options => options.Transports = HttpTransportType.LongPolling | HttpTransportType.ServerSentEvents);
SignalR.Client.FunctionalTestApp (1)
Startup.cs (1)
235endpoints.MapHub<TestHub>("/testhub-nowebsockets", options => options.Transports = HttpTransportType.ServerSentEvents | HttpTransportType.LongPolling);
6 references to Transports
Microsoft.AspNetCore.Http.Connections (4)
Internal\HttpConnectionDispatcher.cs (4)
126var supportedTransports = options.Transports; 424if ((options.Transports & HttpTransportType.WebSockets) != 0 && ServerHasWebSockets(context.Features)) 429if ((options.Transports & HttpTransportType.ServerSentEvents) != 0) 434if ((options.Transports & HttpTransportType.LongPolling) != 0)
Microsoft.AspNetCore.Http.Connections.Tests (2)
HttpConnectionManagerTests.cs (1)
30Assert.Equal(HttpTransports.All, options.Transports);
MapConnectionHandlerTests.cs (1)
343Assert.Equal(HttpTransportType.ServerSentEvents, optionsMetaData.Transports);