1 type derived from HubOptions
Microsoft.AspNetCore.SignalR.Core (1)
HubOptions`T.cs (1)
10public class HubOptions<THub> : HubOptions where THub : Hub
1 instantiation of HubOptions
Microsoft.AspNetCore.SignalR.Tests (1)
AddSignalRTests.cs (1)
196Assert.Throws<ArgumentOutOfRangeException>(() => new HubOptions() { MaximumParallelInvocationsPerClient = 0 });
45 references to HubOptions
Microsoft.AspNetCore.Components.Server (1)
DependencyInjection\ServerSideBlazorBuilderExtensions.cs (1)
36public static IServerSideBlazorBuilder AddHubOptions(this IServerSideBlazorBuilder builder, Action<HubOptions> configure)
Microsoft.AspNetCore.Components.Server.Tests (3)
DependencyInjection\ComponentServiceCollectionExtensionsTest.cs (3)
35services.Configure<HubOptions>(options => 61services.Configure<HubOptions>(options => 69var globalOptions = services.BuildServiceProvider().GetRequiredService<IOptions<HubOptions>>();
Microsoft.AspNetCore.SignalR (3)
SignalRDependencyInjectionExtensions.cs (3)
46services.TryAddEnumerable(ServiceDescriptor.Singleton<IConfigureOptions<HubOptions>, HubOptionsSetup>()); 54/// <param name="configure">An <see cref="Action{HubOptions}"/> to configure the provided <see cref="HubOptions"/>.</param> 56public static ISignalRServerBuilder AddSignalR(this IServiceCollection services, Action<HubOptions> configure)
Microsoft.AspNetCore.SignalR.Core (18)
HubConnectionHandler.cs (2)
27private readonly HubOptions _globalHubOptions; 51IOptions<HubOptions> globalHubOptions,
HubOptionsExtensions.cs (6)
15/// Adds an instance of an <see cref="IHubFilter"/> to the <see cref="HubOptions"/>. 19public static void AddFilter(this HubOptions options, IHubFilter hubFilter) 33/// Adds an <see cref="IHubFilter"/> type to the <see cref="HubOptions"/> that will be resolved via DI or type activated. 37public static void AddFilter<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TFilter>(this HubOptions options) where TFilter : IHubFilter 45/// Adds an <see cref="IHubFilter"/> type to the <see cref="HubOptions"/> that will be resolved via DI or type activated. 49public static void AddFilter(this HubOptions options, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] Type filterType)
HubOptionsSetup.cs (5)
11/// Class to configure the <see cref="HubOptions"/>. 13public class HubOptionsSetup : IConfigureOptions<HubOptions> 44/// Configures the default values of the <see cref="HubOptions"/>. 46/// <param name="options">The <see cref="HubOptions"/> to configure.</param> 47public void Configure(HubOptions options)
HubOptionsSetup`T.cs (5)
9/// Class to configure the <see cref="HubOptions"/> for a specific <typeparamref name="THub"/>. 14private readonly HubOptions _hubOptions; 19/// <param name="options">The global <see cref="HubOptions"/> from Dependency Injection.</param> 20public HubOptionsSetup(IOptions<HubOptions> options) 26/// Configures the default values of the <see cref="HubOptions"/>.
Microsoft.AspNetCore.SignalR.StackExchangeRedis (2)
RedisHubLifetimeManager.cs (2)
63/// <param name="globalHubOptions">The global <see cref="HubOptions"/>.</param> 68IOptions<HubOptions>? globalHubOptions,
Microsoft.AspNetCore.SignalR.Tests (18)
AddSignalRTests.cs (8)
36serviceCollection.AddSingleton<IConfigureOptions<HubOptions>>(hubOptions); 47Assert.Equal(hubOptions, serviceProvider.GetRequiredService<IConfigureOptions<HubOptions>>()); 86Assert.Single(serviceProvider.GetRequiredService<IOptions<HubOptions>>().Value.SupportedProtocols); 89Assert.Null(serviceProvider.GetRequiredService<IOptions<HubOptions>>().Value.HubFilters); 104var globalHubOptions = serviceProvider.GetRequiredService<IOptions<HubOptions>>().Value; 156var globalOptions = serviceProvider.GetRequiredService<IOptions<HubOptions>>().Value;
HubConnectionHandlerTests.cs (10)
196services.Configure<HubOptions>(options => 2696services.Configure<HubOptions>(options => 2742services.Configure<HubOptions>(options => 2804services.Configure<HubOptions>(options => 2840services.Configure<HubOptions>(options => 2869services.Configure<HubOptions>(options => 2903services.Configure<HubOptions>(options => 3012services.Configure<HubOptions>(options => 3071services.Configure<HubOptions>(options => 3591services.Configure<HubOptions>(options =>