22 implementations of IFilterFactory
Microsoft.AspNetCore.Mvc.Core (11)
Authorization\AuthorizeFilter.cs (1)
25
public class AuthorizeFilter : IAsyncAuthorizationFilter,
IFilterFactory
DisableRequestSizeLimitAttribute.cs (1)
18
public class DisableRequestSizeLimitAttribute : Attribute,
IFilterFactory
, IOrderedFilter, IRequestSizeLimitMetadata
Filters\MiddlewareFilterAttribute.cs (1)
14
public class MiddlewareFilterAttribute : Attribute,
IFilterFactory
, IOrderedFilter
FormatFilterAttribute.cs (1)
15
public class FormatFilterAttribute : Attribute,
IFilterFactory
Infrastructure\ClientErrorResultFilterFactory.cs (1)
11
internal sealed class ClientErrorResultFilterFactory :
IFilterFactory
, IOrderedFilter
Infrastructure\ModelStateInvalidFilterFactory.cs (1)
13
internal sealed class ModelStateInvalidFilterFactory :
IFilterFactory
, IOrderedFilter
RequestFormLimitsAttribute.cs (1)
16
public class RequestFormLimitsAttribute : Attribute,
IFilterFactory
, IOrderedFilter, IFormOptionsMetadata
RequestSizeLimitAttribute.cs (1)
14
public class RequestSizeLimitAttribute : Attribute,
IFilterFactory
, IOrderedFilter, IRequestSizeLimitMetadata
ResponseCacheAttribute.cs (1)
16
public class ResponseCacheAttribute : Attribute,
IFilterFactory
, IOrderedFilter
ServiceFilterAttribute.cs (1)
24
public class ServiceFilterAttribute : Attribute,
IFilterFactory
, IOrderedFilter
TypeFilterAttribute.cs (1)
26
public class TypeFilterAttribute : Attribute,
IFilterFactory
, IOrderedFilter
Microsoft.AspNetCore.Mvc.Core.Test (3)
Filters\FilterFactoryTest.cs (1)
270
private class TestFilterFactory :
IFilterFactory
ServiceFilterAttributeTest.cs (1)
50
public class TestFilterFactory :
IFilterFactory
TypeFilterAttributeTest.cs (1)
95
public class TestFilterFactory :
IFilterFactory
Microsoft.AspNetCore.Mvc.Cors (1)
CorsAuthorizationFilterFactory.cs (1)
12
internal sealed class CorsAuthorizationFilterFactory :
IFilterFactory
, IOrderedFilter
Microsoft.AspNetCore.Mvc.RazorPages (2)
Filters\PageSaveTempDataPropertyFilterFactory.cs (1)
9
internal sealed class PageSaveTempDataPropertyFilterFactory :
IFilterFactory
Filters\PageViewDataAttributeFilterFactory.cs (1)
8
internal sealed class PageViewDataAttributeFilterFactory :
IFilterFactory
Microsoft.AspNetCore.Mvc.ViewFeatures (5)
AutoValidateAntiforgeryTokenAttribute.cs (1)
23
public class AutoValidateAntiforgeryTokenAttribute : Attribute,
IFilterFactory
, IOrderedFilter
Filters\ControllerSaveTempDataPropertyFilterFactory.cs (1)
9
internal sealed class ControllerSaveTempDataPropertyFilterFactory :
IFilterFactory
Filters\ControllerViewDataAttributeFilterFactory.cs (1)
8
internal sealed class ControllerViewDataAttributeFilterFactory :
IFilterFactory
SaveTempDataAttribute.cs (1)
16
public class SaveTempDataAttribute : Attribute,
IFilterFactory
, IOrderedFilter
ValidateAntiForgeryTokenAttribute.cs (1)
22
public class ValidateAntiForgeryTokenAttribute : Attribute,
IFilterFactory
, IOrderedFilter
21 references to IFilterFactory
Microsoft.AspNetCore.Mvc.Abstractions (2)
Filters\IFilterContainer.cs (2)
7
/// A filter that requires a reference back to the <see cref="
IFilterFactory
"/> that created it.
12
/// The <see cref="
IFilterFactory
"/> that created this filter instance.
Microsoft.AspNetCore.Mvc.Core (6)
Authorization\AuthorizeFilter.cs (2)
98
bool
IFilterFactory
.IsReusable => true;
197
IFilterMetadata
IFilterFactory
.CreateInstance(IServiceProvider serviceProvider)
Filters\DefaultFilterProvider.cs (2)
44
if (filter is not
IFilterFactory
filterFactory)
59
typeof(
IFilterFactory
).Name));
ServiceFilterAttribute.cs (1)
52
if (filter is
IFilterFactory
filterFactory)
TypeFilterAttribute.cs (1)
71
if (filter is
IFilterFactory
filterFactory)
Microsoft.AspNetCore.Mvc.Core.Test (13)
Authorization\AuthorizeFilterTest.cs (10)
40
var
filterFactory = authorizeFilterFactory as
IFilterFactory
;
426
var
factory = (
IFilterFactory
)authorizeFilter;
442
var
factory = (
IFilterFactory
)authorizeFilter;
468
var
factory = (
IFilterFactory
)authorizeFilter;
495
var
factory = (
IFilterFactory
)authorizeFilter;
Filters\FilterProviderTest.cs (3)
45
var filterFactory = new Mock<
IFilterFactory
>();
76
var filterFactory = new Mock<
IFilterFactory
>();
109
var filterFactory = new Mock<
IFilterFactory
>();