1 type derived from TypeFilterAttribute
Microsoft.AspNetCore.Mvc.Core (1)
TypeFilterOfTAttribute.cs (1)
10
public class TypeFilterAttribute<TFilter> :
TypeFilterAttribute
where TFilter : IFilterMetadata
7 instantiations of TypeFilterAttribute
Microsoft.AspNetCore.Mvc.Core (1)
Filters\FilterCollection.cs (1)
87
var filter = new
TypeFilterAttribute
(filterType) { Order = order };
Microsoft.AspNetCore.Mvc.Core.Test (4)
Filters\FilterFactoryTest.cs (1)
34
var filter = new FilterDescriptor(new
TypeFilterAttribute
(typeof(object)), FilterScope.Global);
TypeFilterAttributeTest.cs (3)
22
var typeFilter = new
TypeFilterAttribute
(typeof(TestFilter));
44
var typeFilter = new
TypeFilterAttribute
(typeof(TestFilter))
69
var typeFilter = new
TypeFilterAttribute
(typeof(TestFilterFactory))
Microsoft.AspNetCore.Mvc.RazorPages.Test (2)
ApplicationModels\DefaultPageApplicationModelProviderTest.cs (2)
561
[
TypeFilter
(typeof(string))]
1123
[
TypeFilter
(typeof(object))]
14 references to TypeFilterAttribute
Microsoft.AspNetCore.Mvc.Core (5)
Filters\FilterCollection.cs (1)
87
var
filter = new TypeFilterAttribute(filterType) { Order = order };
ServiceFilterAttribute.cs (2)
18
/// Similar to the <see cref="
TypeFilterAttribute
"/> in that both use constructor injection. Use
19
/// <see cref="
TypeFilterAttribute
"/> instead if the filter is not itself a service.
TypeFilterAttribute.cs (1)
31
/// Instantiates a new <see cref="
TypeFilterAttribute
"/> instance.
TypeFilterOfTAttribute.cs (1)
13
/// Instantiates a new <see cref="
TypeFilterAttribute
"/> instance.
Microsoft.AspNetCore.Mvc.Core.Test (7)
Filters\FilterCollectionTest.cs (4)
20
var
typeFilter = Assert.IsType<
TypeFilterAttribute
>(added);
35
var
typeFilter = Assert.IsType<
TypeFilterAttribute
>(added);
TypeFilterAttributeTest.cs (3)
22
var
typeFilter = new TypeFilterAttribute(typeof(TestFilter));
44
var
typeFilter = new TypeFilterAttribute(typeof(TestFilter))
69
var
typeFilter = new TypeFilterAttribute(typeof(TestFilterFactory))
Microsoft.AspNetCore.Mvc.RazorPages.Test (2)
ApplicationModels\DefaultPageApplicationModelProviderTest.cs (2)
547
filter => Assert.IsType<
TypeFilterAttribute
>(filter),
1117
filter => Assert.IsType<
TypeFilterAttribute
>(filter),