1 type derived from ServiceFilterAttribute
Microsoft.AspNetCore.Mvc.Core (1)
ServiceFilterOfTAttribute.cs (1)
12public class ServiceFilterAttribute<TFilter> : ServiceFilterAttribute where TFilter : IFilterMetadata
8 instantiations of ServiceFilterAttribute
Microsoft.AspNetCore.Mvc.Core (1)
Filters\FilterCollection.cs (1)
165var filter = new ServiceFilterAttribute(filterType) { Order = order };
Microsoft.AspNetCore.Mvc.Core.Test (4)
ApiConventionTypeAttributeTest.cs (2)
60var attributes = new Attribute[] { new ProducesAttribute(typeof(object)), new ServiceFilterAttribute(typeof(object)), new AuthorizeAttribute() }; 74[ServiceFilter(typeof(object))]
ServiceFilterAttributeTest.cs (2)
20var serviceFilter = new ServiceFilterAttribute(typeof(TestFilter)); 37var serviceFilter = new ServiceFilterAttribute(typeof(TestFilterFactory));
Microsoft.AspNetCore.Mvc.RazorPages.Test (3)
ApplicationModels\DefaultPageApplicationModelProviderTest.cs (3)
553[ServiceFilter(typeof(Guid))] 566[ServiceFilter(typeof(IServiceProvider))] 1214[ServiceFilter(typeof(IServiceProvider))]
13 references to ServiceFilterAttribute
Microsoft.AspNetCore.Mvc.Core (5)
Filters\FilterCollection.cs (1)
165var filter = new ServiceFilterAttribute(filterType) { Order = order };
ServiceFilterAttribute.cs (1)
27/// Instantiates a new <see cref="ServiceFilterAttribute"/> instance.
ServiceFilterOfTAttribute.cs (1)
15/// Instantiates a new <see cref="ServiceFilterAttribute"/> instance.
TypeFilterAttribute.cs (2)
20/// Similar to the <see cref="ServiceFilterAttribute"/> in that both use constructor injection. Use 21/// <see cref="ServiceFilterAttribute"/> instead if the filter is itself a service.
Microsoft.AspNetCore.Mvc.Core.Test (6)
Filters\FilterCollectionTest.cs (4)
91var serviceFilter = Assert.IsType<ServiceFilterAttribute>(added); 106var serviceFilter = Assert.IsType<ServiceFilterAttribute>(added);
ServiceFilterAttributeTest.cs (2)
20var serviceFilter = new ServiceFilterAttribute(typeof(TestFilter)); 37var serviceFilter = new ServiceFilterAttribute(typeof(TestFilterFactory));
Microsoft.AspNetCore.Mvc.RazorPages.Test (2)
ApplicationModels\DefaultPageApplicationModelProviderTest.cs (2)
548filter => Assert.IsType<ServiceFilterAttribute>(filter), 1209filter => Assert.IsType<ServiceFilterAttribute>(filter),