23 writes to Transports
JwtClientSample (1)
Program.cs (1)
34options.Transports = transportType;
Microsoft.AspNetCore.Http.Connections.Client (3)
HttpConnection.cs (1)
127return new HttpConnectionOptions { Url = url, Transports = transports };
HttpConnectionFactory.cs (1)
85Transports = options.Transports,
HttpConnectionOptions.cs (1)
56Transports = HttpTransports.All;
Microsoft.AspNetCore.Http.Connections.Tests (4)
HttpConnectionDispatcherTests.cs (4)
3270Transports = transportType, 3331Transports = transportType, 3432Transports = transportType, 3545Transports = transportType,
Microsoft.AspNetCore.SignalR.Client (1)
HubConnectionBuilderHttpExtensions.cs (1)
147o.Transports = transports.Value;
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (3)
HubConnectionTests.cs (2)
78var options = new HttpConnectionOptions { Url = httpEndpoint.Uri, Transports = transportType, DefaultTransferFormat = transferFormat }; 2102options.Transports = HttpTransportType.LongPolling;
HubProtocolVersionTests.cs (1)
109Transports = transportType,
Microsoft.AspNetCore.SignalR.Client.Tests (5)
HttpConnectionTests.cs (2)
99httpOptions.Transports = HttpTransportType.LongPolling; 183Transports = HttpTransportType.WebSockets,
HttpConnectionTests.Helpers.cs (1)
31Transports = transportType ?? HttpTransportType.LongPolling,
TestServerTests.cs (2)
41options.Transports = Http.Connections.HttpTransportType.WebSockets; 92options.Transports = Http.Connections.HttpTransportType.LongPolling;
Microsoft.AspNetCore.SignalR.Tests (6)
EndToEndTests.cs (6)
80var connection = new HttpConnection(new HttpConnectionOptions { Url = new Uri(url), Transports = transportType, DefaultTransferFormat = TransferFormat.Text }, LoggerFactory); 181Transports = HttpTransportType.WebSockets, 231Transports = transportType, 267var connection = new HttpConnection(new HttpConnectionOptions { Url = new Uri(url), Transports = transportType, DefaultTransferFormat = requestedTransferFormat }, LoggerFactory); 414Transports = HttpTransportType.WebSockets, 491Transports = HttpTransportType.ServerSentEvents,
12 references to Transports
Microsoft.AspNetCore.Http.Connections.Client (8)
HttpConnection.cs (7)
151if (!httpConnectionOptions.SkipNegotiation || httpConnectionOptions.Transports != HttpTransportType.WebSockets) 156if (httpConnectionOptions.Transports == HttpTransportType.ServerSentEvents && OperatingSystem.IsBrowser()) 161_transportFactory = new DefaultTransportFactory(httpConnectionOptions.Transports, _loggerFactory, _httpClient, httpConnectionOptions, GetAccessTokenAsync); 314if (_httpConnectionOptions.Transports == HttpTransportType.WebSockets) 316Log.StartingTransport(_logger, _httpConnectionOptions.Transports, uri); 317await StartTransport(uri, _httpConnectionOptions.Transports, transferFormat, cancellationToken, useStatefulReconnect: false).ConfigureAwait(false); 390if ((transportType & _httpConnectionOptions.Transports) == 0)
HttpConnectionFactory.cs (1)
85Transports = options.Transports,
Microsoft.AspNetCore.SignalR.Client.Tests (4)
HttpConnectionFactoryTests.cs (1)
91{ $"{nameof(HttpConnectionOptions.Transports)}", HttpTransportType.ServerSentEvents },
HttpConnectionTests.cs (1)
38Assert.Equal(HttpTransports.All, httpOptions.Transports);
HubConnectionBuilderExtensionsTests.cs (2)
42Assert.Equal(HttpTransportType.LongPolling, value.Transports); 56Assert.Equal(HttpTransportType.LongPolling, value.Transports);