1 type derived from TypeFilterAttribute
Microsoft.AspNetCore.Mvc.Core (1)
TypeFilterOfTAttribute.cs (1)
10public class TypeFilterAttribute<TFilter> : TypeFilterAttribute where TFilter : IFilterMetadata
7 instantiations of TypeFilterAttribute
Microsoft.AspNetCore.Mvc.Core (1)
Filters\FilterCollection.cs (1)
87var filter = new TypeFilterAttribute(filterType) { Order = order };
Microsoft.AspNetCore.Mvc.Core.Test (4)
Filters\FilterFactoryTest.cs (1)
34var filter = new FilterDescriptor(new TypeFilterAttribute(typeof(object)), FilterScope.Global);
TypeFilterAttributeTest.cs (3)
22var typeFilter = new TypeFilterAttribute(typeof(TestFilter)); 44var typeFilter = new TypeFilterAttribute(typeof(TestFilter)) 69var 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)
87var 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)
20var typeFilter = Assert.IsType<TypeFilterAttribute>(added); 35var typeFilter = Assert.IsType<TypeFilterAttribute>(added);
TypeFilterAttributeTest.cs (3)
22var typeFilter = new TypeFilterAttribute(typeof(TestFilter)); 44var typeFilter = new TypeFilterAttribute(typeof(TestFilter)) 69var typeFilter = new TypeFilterAttribute(typeof(TestFilterFactory))
Microsoft.AspNetCore.Mvc.RazorPages.Test (2)
ApplicationModels\DefaultPageApplicationModelProviderTest.cs (2)
547filter => Assert.IsType<TypeFilterAttribute>(filter), 1117filter => Assert.IsType<TypeFilterAttribute>(filter),