37 instantiations of HttpConnectionOptions
ClientSample (1)
Microsoft.AspNetCore.Http.Connections.Client (5)
Microsoft.AspNetCore.Http.Connections.Tests (5)
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (2)
Microsoft.AspNetCore.SignalR.Client.Tests (15)
Microsoft.AspNetCore.SignalR.Tests (9)
90 references to HttpConnectionOptions
ClientSample (1)
Microsoft.AspNetCore.Http.Connections.Client (27)
Microsoft.AspNetCore.SignalR.Client (13)
HubConnectionBuilderHttpExtensions.cs (13)
23/// Configures the <see cref="HttpConnectionOptions"/> to negotiate stateful reconnect with the server.
29hubConnectionBuilder.Services.Configure<HttpConnectionOptions>(options => options.UseStatefulReconnect = true);
53public static IHubConnectionBuilder WithUrl(this IHubConnectionBuilder hubConnectionBuilder, [StringSyntax(StringSyntaxAttribute.Uri)] string url, Action<HttpConnectionOptions> configureHttpConnection)
80public static IHubConnectionBuilder WithUrl(this IHubConnectionBuilder hubConnectionBuilder, [StringSyntax(StringSyntaxAttribute.Uri)] string url, HttpTransportType transports, Action<HttpConnectionOptions> configureHttpConnection)
105public static IHubConnectionBuilder WithUrl(this IHubConnectionBuilder hubConnectionBuilder, Uri url, Action<HttpConnectionOptions> configureHttpConnection)
132public static IHubConnectionBuilder WithUrl(this IHubConnectionBuilder hubConnectionBuilder, Uri url, HttpTransportType transports, Action<HttpConnectionOptions> configureHttpConnection)
138private static IHubConnectionBuilder WithUrlCore(this IHubConnectionBuilder hubConnectionBuilder, Uri url, HttpTransportType? transports, Action<HttpConnectionOptions>? configureHttpConnection)
142hubConnectionBuilder.Services.Configure<HttpConnectionOptions>(o =>
161hubConnectionBuilder.Services.AddSingleton<IConfigureOptions<HttpConnectionOptions>, HubProtocolDerivedHttpOptionsConfigurer>();
170public HttpConnectionOptionsDerivedHttpEndPoint(IOptions<HttpConnectionOptions> httpConnectionOptions)
176private sealed class HubProtocolDerivedHttpOptionsConfigurer : IConfigureNamedOptions<HttpConnectionOptions>
185public void Configure(string? name, HttpConnectionOptions options)
190public void Configure(HttpConnectionOptions options)
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (2)
Microsoft.AspNetCore.SignalR.Client.Tests (41)
HttpConnectionFactoryTests.cs (21)
86{ $"{nameof(HttpConnectionOptions.HttpMessageHandlerFactory)}", handlerFactory },
87{ $"{nameof(HttpConnectionOptions.Headers)}", new Dictionary<string, string>() },
88{ $"{nameof(HttpConnectionOptions.ClientCertificates)}", new X509CertificateCollection() },
89{ $"{nameof(HttpConnectionOptions.Cookies)}", new CookieContainer() },
90{ $"{nameof(HttpConnectionOptions.Url)}", new Uri("https://example.com") },
91{ $"{nameof(HttpConnectionOptions.Transports)}", HttpTransportType.ServerSentEvents },
92{ $"{nameof(HttpConnectionOptions.SkipNegotiation)}", true },
93{ $"{nameof(HttpConnectionOptions.AccessTokenProvider)}", tokenProvider },
94{ $"{nameof(HttpConnectionOptions.CloseTimeout)}", TimeSpan.FromDays(1) },
95{ $"{nameof(HttpConnectionOptions.Credentials)}", Mock.Of<ICredentials>() },
96{ $"{nameof(HttpConnectionOptions.Proxy)}", Mock.Of<IWebProxy>() },
97{ $"{nameof(HttpConnectionOptions.UseDefaultCredentials)}", true },
98{ $"{nameof(HttpConnectionOptions.DefaultTransferFormat)}", TransferFormat.Text },
99{ $"{nameof(HttpConnectionOptions.WebSocketConfiguration)}", webSocketConfig },
100{ $"{nameof(HttpConnectionOptions.WebSocketFactory)}", webSocketFactory },
101{ $"{nameof(HttpConnectionOptions.ApplicationMaxBufferSize)}", 1L * 1024 * 1024 },
102{ $"{nameof(HttpConnectionOptions.TransportMaxBufferSize)}", 1L * 1024 * 1024 },
103{ $"{nameof(HttpConnectionOptions.UseStatefulReconnect)}", true },
106var options = new HttpConnectionOptions();
107var properties = typeof(HttpConnectionOptions)
115var shallowCopiedOptions = HttpConnectionFactory.ShallowCopyHttpConnectionOptions(options);
Microsoft.AspNetCore.SignalR.Tests (6)