22 instantiations of HttpConnection
ClientSample (1)
RawSample.cs (1)
43var connection = new HttpConnection(connectionOptions, loggerFactory: null);
Microsoft.AspNetCore.Http.Connections.Client (1)
HttpConnectionFactory.cs (1)
62var connection = new HttpConnection(shallowCopiedOptions, _loggerFactory);
Microsoft.AspNetCore.Http.Connections.Tests (5)
HttpConnectionDispatcherTests.cs (5)
3265var connection = new HttpConnection( 3327var connection = new HttpConnection( 3427var connection = new HttpConnection( 3468var connection = new HttpConnection( 3541var connection = new HttpConnection(
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (1)
HubConnectionTests.cs (1)
79var connection = new HttpConnection(options, loggerFactory);
Microsoft.AspNetCore.SignalR.Client.Tests (4)
HttpConnectionTests.cs (3)
52var exception = Assert.Throws<ArgumentNullException>(() => new HttpConnection(null)); 59var exception = Assert.Throws<ArgumentException>(() => new HttpConnection(new HttpConnectionOptions(), NullLoggerFactory.Instance)); 66var connection = new HttpConnection(new Uri("http://fakeuri.org/"));
HttpConnectionTests.Helpers.cs (1)
66return new HttpConnection(httpConnectionOptions, loggerFactory);
Microsoft.AspNetCore.SignalR.Tests (10)
EndToEndTests.cs (10)
44var connection = new HttpConnection(new Uri(url), HttpTransports.All, LoggerFactory); 80var connection = new HttpConnection(new HttpConnectionOptions { Url = new Uri(url), Transports = transportType, DefaultTransferFormat = TransferFormat.Text }, LoggerFactory); 186var connection = new HttpConnection(httpOptions, LoggerFactory); 236var connection = new HttpConnection(httpOptions, LoggerFactory); 267var connection = new HttpConnection(new HttpConnectionOptions { Url = new Uri(url), Transports = transportType, DefaultTransferFormat = requestedTransferFormat }, LoggerFactory); 323var connection = new HttpConnection(new Uri(url), HttpTransportType.WebSockets, LoggerFactory); 387var connection = new HttpConnection(new Uri(url), HttpTransportType.WebSockets, LoggerFactory); 418var connection = new HttpConnection(options, LoggerFactory); 441var connection = new HttpConnection(new Uri(url), transportType, LoggerFactory); 486var connection = new HttpConnection(
71 references to HttpConnection
ClientSample (1)
RawSample.cs (1)
43var connection = new HttpConnection(connectionOptions, loggerFactory: null);
Microsoft.AspNetCore.Http.Connections.Client (15)
HttpConnection.cs (6)
77/// The connection ID is set when the <see cref="HttpConnection"/> is started and should not be set by user code. 96/// Initializes a new instance of the <see cref="HttpConnection"/> class. 104/// Initializes a new instance of the <see cref="HttpConnection"/> class. 114/// Initializes a new instance of the <see cref="HttpConnection"/> class. 131/// Initializes a new instance of the <see cref="HttpConnection"/> class. 146_logger = _loggerFactory.CreateLogger(typeof(HttpConnection));
HttpConnectionFactory.cs (2)
16/// A factory for creating <see cref="HttpConnection"/> instances. 62var connection = new HttpConnection(shallowCopiedOptions, _loggerFactory);
HttpConnectionOptions.cs (4)
20/// Options used to configure a <see cref="HttpConnection"/> instance. 248/// Gets or sets the default <see cref="TransferFormat" /> to use if <see cref="HttpConnection.StartAsync(CancellationToken)"/> 249/// is called instead of <see cref="HttpConnection.StartAsync(TransferFormat, CancellationToken)"/>. 280/// Also preserves the <see cref="HttpConnection.ConnectionId"/> when the reconnect is successful.
Internal\AccessTokenHttpMessageHandler.cs (3)
14private readonly HttpConnection _httpConnection; 17public AccessTokenHttpMessageHandler(HttpMessageHandler inner, HttpConnection httpConnection) : base(inner) 44HttpConnection.Log.RetryAccessToken(_httpConnection._logger, result.StatusCode);
Microsoft.AspNetCore.Http.Connections.Tests (5)
HttpConnectionDispatcherTests.cs (5)
3265var connection = new HttpConnection( 3327var connection = new HttpConnection( 3427var connection = new HttpConnection( 3468var connection = new HttpConnection( 3541var connection = new HttpConnection(
Microsoft.AspNetCore.SignalR.Client (12)
HubConnectionBuilderHttpExtensions.cs (12)
38/// <param name="url">The URL the <see cref="HttpConnection"/> will use.</param> 50/// <param name="url">The URL the <see cref="HttpConnection"/> will use.</param> 51/// <param name="configureHttpConnection">The delegate that configures the <see cref="HttpConnection"/>.</param> 63/// <param name="url">The URL the <see cref="HttpConnection"/> will use.</param> 76/// <param name="url">The URL the <see cref="HttpConnection"/> will use.</param> 78/// <param name="configureHttpConnection">The delegate that configures the <see cref="HttpConnection"/>.</param> 90/// <param name="url">The URL the <see cref="HttpConnection"/> will use.</param> 102/// <param name="url">The URL the <see cref="HttpConnection"/> will use.</param> 103/// <param name="configureHttpConnection">The delegate that configures the <see cref="HttpConnection"/>.</param> 115/// <param name="url">The URL the <see cref="HttpConnection"/> will use.</param> 128/// <param name="url">The URL the <see cref="HttpConnection"/> will use.</param> 130/// <param name="configureHttpConnection">The delegate that configures the <see cref="HttpConnection"/>.</param>
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (4)
HubConnectionTests.cs (4)
79var connection = new HttpConnection(options, loggerFactory); 127return writeContext.LoggerName == typeof(HttpConnection).FullName && 1619var majorVersion = typeof(HttpConnection).Assembly.GetName().Version.Major; 1620var minorVersion = typeof(HttpConnection).Assembly.GetName().Version.Minor;
Microsoft.AspNetCore.SignalR.Client.Tests (14)
HttpConnectionTests.ConnectionLifecycle.cs (7)
72Assert.Equal(typeof(HttpConnection).FullName, exception.ObjectName); 84return writeContext.LoggerName == typeof(HttpConnection).FullName && 135return writeContext.LoggerName == typeof(HttpConnection).FullName && 327return writeContext.LoggerName == typeof(HttpConnection).FullName && 485return writeContext.LoggerName == typeof(HttpConnection).FullName && 535private static async Task AssertDisposedAsync(HttpConnection connection) 539Assert.Equal(typeof(HttpConnection).FullName, exception.ObjectName);
HttpConnectionTests.cs (1)
66var connection = new HttpConnection(new Uri("http://fakeuri.org/"));
HttpConnectionTests.Helpers.cs (4)
19private static HttpConnection CreateConnection( 43private static HttpConnection CreateConnection( 70private static async Task WithConnectionAsync(HttpConnection connection, Func<HttpConnection, Task> body)
HttpConnectionTests.Negotiate.cs (1)
579return writeContext.LoggerName == typeof(HttpConnection).FullName &&
HttpConnectionTests.Transport.cs (1)
279Assert.Equal(typeof(HttpConnection).FullName, exception.ObjectName);
Microsoft.AspNetCore.SignalR.Tests (20)
EndToEndTests.cs (18)
44var connection = new HttpConnection(new Uri(url), HttpTransports.All, LoggerFactory); 55return writeContext.LoggerName == typeof(HttpConnection).FullName && 66var connection = new HttpConnection(new HttpConnectionOptions { Url = new Uri(url), DefaultTransferFormat = TransferFormat.Text }, LoggerFactory, new TestTransportFactory()); 80var connection = new HttpConnection(new HttpConnectionOptions { Url = new Uri(url), Transports = transportType, DefaultTransferFormat = TransferFormat.Text }, LoggerFactory); 186var connection = new HttpConnection(httpOptions, LoggerFactory); 236var connection = new HttpConnection(httpOptions, LoggerFactory); 267var connection = new HttpConnection(new HttpConnectionOptions { Url = new Uri(url), Transports = transportType, DefaultTransferFormat = requestedTransferFormat }, LoggerFactory); 323var connection = new HttpConnection(new Uri(url), HttpTransportType.WebSockets, LoggerFactory); 378return writeContext.LoggerName == typeof(HttpConnection).FullName && 387var connection = new HttpConnection(new Uri(url), HttpTransportType.WebSockets, LoggerFactory); 402return writeContext.LoggerName == typeof(HttpConnection).FullName && 418var connection = new HttpConnection(options, LoggerFactory); 432return writeContext.LoggerName == typeof(HttpConnection).FullName && 441var connection = new HttpConnection(new Uri(url), transportType, LoggerFactory); 468return writeContext.LoggerName == typeof(HttpConnection).FullName && 486var connection = new HttpConnection( 603return writeContext.LoggerName == typeof(HttpConnection).FullName && 642return writeContext.LoggerName == typeof(HttpConnection).FullName &&
WebSocketsTransportTests.cs (2)
126var majorVersion = typeof(HttpConnection).Assembly.GetName().Version.Major; 127var minorVersion = typeof(HttpConnection).Assembly.GetName().Version.Minor;