22 implementations of CreateInstance
Microsoft.AspNetCore.Mvc.Core (11)
Authorization\AuthorizeFilter.cs (1)
197
IFilterMetadata IFilterFactory.
CreateInstance
(IServiceProvider serviceProvider)
DisableRequestSizeLimitAttribute.cs (1)
42
public IFilterMetadata
CreateInstance
(IServiceProvider serviceProvider)
Filters\MiddlewareFilterAttribute.cs (1)
39
public IFilterMetadata
CreateInstance
(IServiceProvider serviceProvider)
FormatFilterAttribute.cs (1)
25
public IFilterMetadata
CreateInstance
(IServiceProvider serviceProvider)
Infrastructure\ClientErrorResultFilterFactory.cs (1)
17
public IFilterMetadata
CreateInstance
(IServiceProvider serviceProvider)
Infrastructure\ModelStateInvalidFilterFactory.cs (1)
19
public IFilterMetadata
CreateInstance
(IServiceProvider serviceProvider)
RequestFormLimitsAttribute.cs (1)
165
public IFilterMetadata
CreateInstance
(IServiceProvider serviceProvider)
RequestSizeLimitAttribute.cs (1)
49
public IFilterMetadata
CreateInstance
(IServiceProvider serviceProvider)
ResponseCacheAttribute.cs (1)
118
public IFilterMetadata
CreateInstance
(IServiceProvider serviceProvider)
ServiceFilterAttribute.cs (1)
47
public IFilterMetadata
CreateInstance
(IServiceProvider serviceProvider)
TypeFilterAttribute.cs (1)
60
public IFilterMetadata
CreateInstance
(IServiceProvider serviceProvider)
Microsoft.AspNetCore.Mvc.Core.Test (3)
Filters\FilterFactoryTest.cs (1)
276
public IFilterMetadata
CreateInstance
(IServiceProvider serviceProvider)
ServiceFilterAttributeTest.cs (1)
54
public IFilterMetadata
CreateInstance
(IServiceProvider serviceProvider)
TypeFilterAttributeTest.cs (1)
108
public IFilterMetadata
CreateInstance
(IServiceProvider serviceProvider)
Microsoft.AspNetCore.Mvc.Cors (1)
CorsAuthorizationFilterFactory.cs (1)
34
public IFilterMetadata
CreateInstance
(IServiceProvider serviceProvider)
Microsoft.AspNetCore.Mvc.RazorPages (2)
Filters\PageSaveTempDataPropertyFilterFactory.cs (1)
20
public IFilterMetadata
CreateInstance
(IServiceProvider serviceProvider)
Filters\PageViewDataAttributeFilterFactory.cs (1)
20
public IFilterMetadata
CreateInstance
(IServiceProvider serviceProvider)
Microsoft.AspNetCore.Mvc.ViewFeatures (5)
AutoValidateAntiforgeryTokenAttribute.cs (1)
47
public IFilterMetadata
CreateInstance
(IServiceProvider serviceProvider)
Filters\ControllerSaveTempDataPropertyFilterFactory.cs (1)
20
public IFilterMetadata
CreateInstance
(IServiceProvider serviceProvider)
Filters\ControllerViewDataAttributeFilterFactory.cs (1)
20
public IFilterMetadata
CreateInstance
(IServiceProvider serviceProvider)
SaveTempDataAttribute.cs (1)
36
public IFilterMetadata
CreateInstance
(IServiceProvider serviceProvider)
ValidateAntiForgeryTokenAttribute.cs (1)
46
public IFilterMetadata
CreateInstance
(IServiceProvider serviceProvider)
12 references to CreateInstance
Microsoft.AspNetCore.Mvc.Abstractions (1)
Filters\IFilterFactory.cs (1)
12
/// Gets a value that indicates if the result of <see cref="
CreateInstance
(IServiceProvider)"/>
Microsoft.AspNetCore.Mvc.Core (3)
Filters\DefaultFilterProvider.cs (1)
52
filterItem.Filter = filterFactory.
CreateInstance
(services);
ServiceFilterAttribute.cs (1)
55
filter = filterFactory.
CreateInstance
(serviceProvider);
TypeFilterAttribute.cs (1)
74
filter = filterFactory.
CreateInstance
(serviceProvider);
Microsoft.AspNetCore.Mvc.Core.Test (8)
Authorization\AuthorizeFilterTest.cs (5)
41
var authorizeFilter = (AuthorizeFilter)filterFactory.
CreateInstance
(
429
var result = factory.
CreateInstance
(new ServiceCollection().BuildServiceProvider());
445
var result = factory.
CreateInstance
(new ServiceCollection().BuildServiceProvider());
481
var result = factory.
CreateInstance
(serviceProvider);
502
var result = factory.
CreateInstance
(serviceProvider);
Filters\FilterProviderTest.cs (3)
47
.Setup(ff => ff.
CreateInstance
(It.IsAny<IServiceProvider>()))
78
.Setup(ff => ff.
CreateInstance
(It.IsAny<IServiceProvider>()))
111
.Setup(ff => ff.
CreateInstance
(It.IsAny<IServiceProvider>()))