IFilterFactory Interface¶
An interface for filter metadata which can create an instance of an executable filter.
- Namespace
Microsoft.AspNetCore.Mvc.Filters- Assemblies
- Microsoft.AspNetCore.Mvc.Abstractions
Syntax¶
public interface IFilterFactory : IFilterMetadata
-
interface
Microsoft.AspNetCore.Mvc.Filters.IFilterFactory
Methods¶
-
CreateInstance(System.IServiceProvider)¶ Creates an instance of the executable filter.
Arguments: serviceProvider (System.IServiceProvider) – The request System.IServiceProvider.Return type: Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata Returns: An instance of the executable filter. IFilterMetadata CreateInstance(IServiceProvider serviceProvider)
-
Properties¶
-
Microsoft.AspNetCore.Mvc.Filters.IFilterFactory.IsReusable¶ Gets a value that indicates if the result of
Microsoft.AspNetCore.Mvc.Filters.IFilterFactory.CreateInstance(System.IServiceProvider)can be reused across requests.Return type: System.Boolean bool IsReusable { get; }
-