14 instantiations of HubOptions
Microsoft.AspNetCore.Components.Server.Tests (14)
Circuits\CircuitHostTest.cs (1)
729=> new RemoteJSRuntime(Options.Create(options), Options.Create(new HubOptions<ComponentHub>()), null);
Circuits\RemoteJSDataStreamTest.cs (10)
15private static readonly TestRemoteJSRuntime _jsRuntime = new(Options.Create(new CircuitOptions()), Options.Create(new HubOptions<ComponentHub>()), Mock.Of<ILogger<RemoteJSRuntime>>()); 48var jsRuntime = new TestRemoteJSRuntime(Options.Create(new CircuitOptions()), Options.Create(new HubOptions<ComponentHub>()), Mock.Of<ILogger<RemoteJSRuntime>>()); 76var jsRuntime = new TestRemoteJSRuntime(Options.Create(new CircuitOptions()), Options.Create(new HubOptions<ComponentHub>()), Mock.Of<ILogger<RemoteJSRuntime>>()); 104var jsRuntime = new TestRemoteJSRuntime(Options.Create(new CircuitOptions()), Options.Create(new HubOptions<ComponentHub>()), Mock.Of<ILogger<RemoteJSRuntime>>()); 122var jsRuntime = new TestRemoteJSRuntime(Options.Create(new CircuitOptions()), Options.Create(new HubOptions<ComponentHub>()), Mock.Of<ILogger<RemoteJSRuntime>>()); 141var jsRuntime = new TestRemoteJSRuntime(Options.Create(new CircuitOptions()), Options.Create(new HubOptions<ComponentHub>()), Mock.Of<ILogger<RemoteJSRuntime>>()); 160var jsRuntime = new TestRemoteJSRuntime(Options.Create(new CircuitOptions()), Options.Create(new HubOptions<ComponentHub>()), Mock.Of<ILogger<RemoteJSRuntime>>()); 180var jsRuntime = new TestRemoteJSRuntime(Options.Create(new CircuitOptions()), Options.Create(new HubOptions<ComponentHub>()), Mock.Of<ILogger<RemoteJSRuntime>>()); 205var jsRuntime = new TestRemoteJSRuntime(Options.Create(new CircuitOptions()), Options.Create(new HubOptions<ComponentHub>()), Mock.Of<ILogger<RemoteJSRuntime>>()); 246var jsRuntime = new TestRemoteJSRuntime(Options.Create(new CircuitOptions()), Options.Create(new HubOptions<ComponentHub>()), Mock.Of<ILogger<RemoteJSRuntime>>());
Circuits\RemoteJSRuntimeTest.cs (1)
102var componentHubOptions = Options.Create(new HubOptions<ComponentHub>());
Circuits\RemoteRendererTest.cs (1)
726=> new RemoteJSRuntime(Options.Create(options), Options.Create(new HubOptions<ComponentHub>()), null);
Circuits\TestCircuitHost.cs (1)
31var jsRuntime = new RemoteJSRuntime(Options.Create(new CircuitOptions()), Options.Create(new HubOptions<ComponentHub>()), Mock.Of<ILogger<RemoteJSRuntime>>());
20 references to HubOptions
Microsoft.AspNetCore.Components.Server (2)
Circuits\RemoteJSRuntime.cs (1)
42IOptions<HubOptions<ComponentHub>> componentHubOptions,
DependencyInjection\ServerSideBlazorBuilderExtensions.cs (1)
41builder.Services.Configure<HubOptions<ComponentHub>>(configure);
Microsoft.AspNetCore.Components.Server.Tests (5)
Circuits\RemoteJSDataStreamTest.cs (1)
357public TestRemoteJSRuntime(IOptions<CircuitOptions> circuitOptions, IOptions<HubOptions<ComponentHub>> hubOptions, ILogger<RemoteJSRuntime> logger) : base(circuitOptions, hubOptions, logger)
Circuits\RemoteJSRuntimeTest.cs (1)
110public TestRemoteJSRuntime(IOptions<CircuitOptions> circuitOptions, IOptions<HubOptions<ComponentHub>> hubOptions, ILogger<RemoteJSRuntime> logger) : base(circuitOptions, hubOptions, logger)
DependencyInjection\ComponentServiceCollectionExtensionsTest.cs (3)
21var options = services.BuildServiceProvider().GetRequiredService<IOptions<HubOptions<ComponentHub>>>(); 42var options = services.BuildServiceProvider().GetRequiredService<IOptions<HubOptions<ComponentHub>>>(); 68var options = services.BuildServiceProvider().GetRequiredService<IOptions<HubOptions<ComponentHub>>>();
Microsoft.AspNetCore.SignalR (2)
SignalRDependencyInjectionExtensions.cs (2)
23public static ISignalRServerBuilder AddHubOptions<THub>(this ISignalRServerBuilder signalrBuilder, Action<HubOptions<THub>> configure) where THub : Hub 27signalrBuilder.Services.AddSingleton<IConfigureOptions<HubOptions<THub>>, HubOptionsSetup<THub>>();
Microsoft.AspNetCore.SignalR.Core (4)
HubConnectionHandler.cs (2)
26private readonly HubOptions<THub> _hubOptions; 52IOptions<HubOptions<THub>> hubOptions,
HubOptionsSetup`T.cs (2)
12public class HubOptionsSetup<THub> : IConfigureOptions<HubOptions<THub>> where THub : Hub 29public void Configure(HubOptions<THub> options)
Microsoft.AspNetCore.SignalR.StackExchangeRedis (1)
RedisHubLifetimeManager.cs (1)
69IOptions<HubOptions<THub>>? hubOptions)
Microsoft.AspNetCore.SignalR.Tests (6)
AddSignalRTests.cs (6)
87Assert.Empty(serviceProvider.GetRequiredService<IOptions<HubOptions<CustomHub>>>().Value.SupportedProtocols); 90Assert.Single(serviceProvider.GetRequiredService<IOptions<HubOptions<CustomHub>>>().Value.HubFilters); 103var hubOptions = serviceProvider.GetRequiredService<IOptions<HubOptions<CustomHub>>>().Value; 130Assert.Equal(42, serviceProvider.GetRequiredService<IOptions<HubOptions<CustomHub>>>().Value.StreamBufferCapacity); 182Assert.Collection(serviceProvider.GetRequiredService<IOptions<HubOptions<CustomHub>>>().Value.SupportedProtocols,