11 implementations of IHubFilter
Microsoft.AspNetCore.SignalR.Core (1)
Internal\HubFilterFactory.cs (1)
9internal sealed class HubFilterFactory : IHubFilter
Microsoft.AspNetCore.SignalR.Tests (10)
AddSignalRTests.cs (1)
357internal class CustomHubFilter : IHubFilter
TestFilters.cs (9)
11public class VerifyMethodFilter : IHubFilter 43public class SyncPointFilter : IHubFilter 80public class CounterFilter : IHubFilter 110public class NoExceptionFilter : IHubFilter 142public class SkipNextFilter : IHubFilter 186public class DisposableFilter : IHubFilter, IDisposable 206public class AsyncDisposableFilter : IHubFilter, IAsyncDisposable 227public class ChangeMethodFilter : IHubFilter 237public class EmptyFilter : IHubFilter
21 references to IHubFilter
Microsoft.AspNetCore.SignalR.Core (21)
HubConnectionHandler.cs (3)
69List<IHubFilter>? hubFilters = null; 80hubFilters = new List<IHubFilter>(_hubOptions.HubFilters); 93hubFilters = new List<IHubFilter>(_globalHubOptions.HubFilters);
HubOptions.cs (1)
57internal List<IHubFilter>? HubFilters { get; set; }
HubOptionsExtensions.cs (9)
10/// Methods to add <see cref="IHubFilter"/>'s to Hubs. 15/// Adds an instance of an <see cref="IHubFilter"/> to the <see cref="HubOptions"/>. 19public static void AddFilter(this HubOptions options, IHubFilter hubFilter) 26options.HubFilters = new List<IHubFilter>(); 33/// Adds an <see cref="IHubFilter"/> type to the <see cref="HubOptions"/> that will be resolved via DI or type activated. 35/// <typeparam name="TFilter">The <see cref="IHubFilter"/> type that will be added to the options.</typeparam> 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. 48/// <param name="filterType">The <see cref="IHubFilter"/> type that will be added to the options.</param>
HubOptionsSetup`T.cs (1)
46options.HubFilters = new List<IHubFilter>(_hubOptions.HubFilters);
Internal\DefaultHubDispatcher.cs (2)
43bool disableImplicitFromServiceParameters, ILogger<DefaultHubDispatcher<THub>> logger, List<IHubFilter>? hubFilters, HubLifetimeManager<THub> lifetimeManager) 70var resolvedFilter = hubFilters![i];
Internal\HubFilterFactory.cs (5)
73private static ValueTask DisposeFilter(IHubFilter filter) 86private (IHubFilter, bool) GetFilter(IServiceProvider serviceProvider) 89var filter = (IHubFilter?)serviceProvider.GetService(_filterType); 92filter = (IHubFilter)_objectFactory.Invoke(serviceProvider, Array.Empty<object>());