11 implementations of IHubFilter
Microsoft.AspNetCore.SignalR.Core (1)
Internal\HubFilterFactory.cs (1)
9
internal sealed class HubFilterFactory :
IHubFilter
Microsoft.AspNetCore.SignalR.Tests (10)
AddSignalRTests.cs (1)
357
internal class CustomHubFilter :
IHubFilter
TestFilters.cs (9)
11
public class VerifyMethodFilter :
IHubFilter
43
public class SyncPointFilter :
IHubFilter
80
public class CounterFilter :
IHubFilter
110
public class NoExceptionFilter :
IHubFilter
142
public class SkipNextFilter :
IHubFilter
186
public class DisposableFilter :
IHubFilter
, IDisposable
206
public class AsyncDisposableFilter :
IHubFilter
, IAsyncDisposable
227
public class ChangeMethodFilter :
IHubFilter
237
public class EmptyFilter :
IHubFilter
21 references to IHubFilter
Microsoft.AspNetCore.SignalR.Core (21)
HubConnectionHandler.cs (3)
69
List<
IHubFilter
>? hubFilters = null;
80
hubFilters = new List<
IHubFilter
>(_hubOptions.HubFilters);
93
hubFilters = new List<
IHubFilter
>(_globalHubOptions.HubFilters);
HubOptions.cs (1)
57
internal 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"/>.
19
public static void AddFilter(this HubOptions options,
IHubFilter
hubFilter)
26
options.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>
37
public 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)
46
options.HubFilters = new List<
IHubFilter
>(_hubOptions.HubFilters);
Internal\DefaultHubDispatcher.cs (2)
43
bool disableImplicitFromServiceParameters, ILogger<DefaultHubDispatcher<THub>> logger, List<
IHubFilter
>? hubFilters, HubLifetimeManager<THub> lifetimeManager)
70
var
resolvedFilter = hubFilters![i];
Internal\HubFilterFactory.cs (5)
73
private static ValueTask DisposeFilter(
IHubFilter
filter)
86
private (
IHubFilter
, bool) GetFilter(IServiceProvider serviceProvider)
89
var
filter = (
IHubFilter
?)serviceProvider.GetService(_filterType);
92
filter = (
IHubFilter
)_objectFactory.Invoke(serviceProvider, Array.Empty<object>());