2 instantiations of CorsAuthorizationFilter
Microsoft.AspNetCore.Mvc.Cors.Test (2)
CorsApplicationModelProviderTest.cs (1)
142
new
CorsAuthorizationFilter
(Mock.Of<ICorsService>(), Mock.Of<ICorsPolicyProvider>(), Mock.Of<ILoggerFactory>()));
CorsAuthorizationFilterTest.cs (1)
123
return new
CorsAuthorizationFilter
(corsService, policyProvider.Object, Mock.Of<ILoggerFactory>())
13 references to CorsAuthorizationFilter
Microsoft.AspNetCore.Mvc.Cors (7)
CorsAuthorizationFilter.cs (2)
23
/// Creates a new instance of <see cref="
CorsAuthorizationFilter
"/>.
33
/// Creates a new instance of <see cref="
CorsAuthorizationFilter
"/>.
CorsAuthorizationFilterFactory.cs (3)
10
/// A filter factory which creates a new instance of <see cref="
CorsAuthorizationFilter
"/>.
38
var
filter = serviceProvider.GetRequiredService<
CorsAuthorizationFilter
>();
DependencyInjection\MvcCorsMvcCoreBuilderExtensions.cs (2)
72
services.TryAddTransient<
CorsAuthorizationFilter
,
CorsAuthorizationFilter
>();
Microsoft.AspNetCore.Mvc.Cors.Test (5)
CorsAuthorizationFilterTest.cs (5)
27
var
filter = GetFilter(mockEngine);
57
var
filter = GetFilter(mockEngine);
78
var
filter = GetFilter(mockEngine);
101
var
filter = GetFilter(mockEngine);
116
private
CorsAuthorizationFilter
GetFilter(ICorsService corsService)
Microsoft.AspNetCore.Mvc.Test (1)
MvcServiceCollectionExtensionsTest.cs (1)
244
Assert.Contains(services, s => s.ServiceType == typeof(
CorsAuthorizationFilter
));