1 implementation of ICorsPolicyProvider
Microsoft.AspNetCore.Cors (1)
Infrastructure\DefaultCorsPolicyProvider.cs (1)
10
public class DefaultCorsPolicyProvider :
ICorsPolicyProvider
29 references to ICorsPolicyProvider
Microsoft.AspNetCore.Cors (2)
CorsServiceCollectionExtensions.cs (1)
26
services.TryAdd(ServiceDescriptor.Transient<
ICorsPolicyProvider
, DefaultCorsPolicyProvider>());
Infrastructure\CorsMiddleware.cs (1)
89
public Task Invoke(HttpContext context,
ICorsPolicyProvider
corsPolicyProvider)
Microsoft.AspNetCore.Cors.Test (20)
CorsMiddlewareTests.cs (20)
379
var mockProvider = new Mock<
ICorsPolicyProvider
>();
408
var mockProvider = new Mock<
ICorsPolicyProvider
>();
642
var mockProvider = new Mock<
ICorsPolicyProvider
>();
686
var mockProvider = new Mock<
ICorsPolicyProvider
>();
716
var mockProvider = new Mock<
ICorsPolicyProvider
>();
746
var
policyProvider = Mock.Of<
ICorsPolicyProvider
>();
774
var
policyProvider = Mock.Of<
ICorsPolicyProvider
>();
808
var mockProvider = new Mock<
ICorsPolicyProvider
>();
840
var mockProvider = new Mock<
ICorsPolicyProvider
>();
877
var mockProvider = new Mock<
ICorsPolicyProvider
>();
913
var mockProvider = new Mock<
ICorsPolicyProvider
>();
943
var mockProvider = new Mock<
ICorsPolicyProvider
>();
973
var
mockProvider = Mock.Of<
ICorsPolicyProvider
>();
998
var
mockProvider = Mock.Of<
ICorsPolicyProvider
>();
1022
var
mockProvider = Mock.Of<
ICorsPolicyProvider
>();
Microsoft.AspNetCore.Mvc.Cors (5)
CorsAuthorizationFilter.cs (5)
19
private readonly
ICorsPolicyProvider
_corsPolicyProvider;
26
/// <param name="policyProvider">The <see cref="
ICorsPolicyProvider
"/>.</param>
27
public CorsAuthorizationFilter(ICorsService corsService,
ICorsPolicyProvider
policyProvider)
36
/// <param name="policyProvider">The <see cref="
ICorsPolicyProvider
"/>.</param>
40
ICorsPolicyProvider
policyProvider,
Microsoft.AspNetCore.Mvc.Cors.Test (2)
CorsApplicationModelProviderTest.cs (1)
142
new CorsAuthorizationFilter(Mock.Of<ICorsService>(), Mock.Of<
ICorsPolicyProvider
>(), Mock.Of<ILoggerFactory>()));
CorsAuthorizationFilterTest.cs (1)
118
var policyProvider = new Mock<
ICorsPolicyProvider
>();