1 implementation of ICorsService
Microsoft.AspNetCore.Cors (1)
Infrastructure\CorsService.cs (1)
17
public class CorsService :
ICorsService
51 references to ICorsService
Microsoft.AspNetCore.Cors (10)
CorsServiceCollectionExtensions.cs (1)
25
services.TryAdd(ServiceDescriptor.Transient<
ICorsService
, CorsService>());
Infrastructure\CorsMiddleware.cs (7)
27
/// <param name="corsService">An instance of <see cref="
ICorsService
"/>.</param>
31
ICorsService
corsService,
41
/// <param name="corsService">An instance of <see cref="
ICorsService
"/>.</param>
46
ICorsService
corsService,
64
/// <param name="corsService">An instance of <see cref="
ICorsService
"/>.</param>
69
ICorsService
corsService,
84
private
ICorsService
CorsService { get; }
Infrastructure\CorsResult.cs (1)
10
/// Results returned by <see cref="
ICorsService
"/>.
Infrastructure\CorsService.cs (1)
15
/// Default implementation of <see cref="
ICorsService
"/>.
Microsoft.AspNetCore.Cors.Test (26)
CorsMiddlewareTests.cs (26)
378
var
corsService = Mock.Of<
ICorsService
>();
407
var
corsService = Mock.Of<
ICorsService
>();
685
var
corsService = Mock.Of<
ICorsService
>();
715
var
corsService = Mock.Of<
ICorsService
>();
745
var
corsService = Mock.Of<
ICorsService
>();
773
var
corsService = Mock.Of<
ICorsService
>();
807
var
corsService = Mock.Of<
ICorsService
>();
839
var mockCorsService = new Mock<
ICorsService
>();
876
var mockCorsService = new Mock<
ICorsService
>();
912
var
corsService = Mock.Of<
ICorsService
>();
942
var
corsService = Mock.Of<
ICorsService
>();
972
var
corsService = Mock.Of<
ICorsService
>();
997
var
corsService = Mock.Of<
ICorsService
>();
1021
var
corsService = Mock.Of<
ICorsService
>();
Microsoft.AspNetCore.Mvc.Cors (5)
CorsAuthorizationFilter.cs (5)
18
private readonly
ICorsService
_corsService;
25
/// <param name="corsService">The <see cref="
ICorsService
"/>.</param>
27
public CorsAuthorizationFilter(
ICorsService
corsService, ICorsPolicyProvider policyProvider)
35
/// <param name="corsService">The <see cref="
ICorsService
"/>.</param>
39
ICorsService
corsService,
Microsoft.AspNetCore.Mvc.Cors.Test (10)
CorsApplicationModelProviderTest.cs (1)
142
new CorsAuthorizationFilter(Mock.Of<
ICorsService
>(), Mock.Of<ICorsPolicyProvider>(), Mock.Of<ILoggerFactory>()));
CorsAuthorizationFilterTest.cs (9)
26
var
mockEngine = GetPassingEngine(supportsCredentials: true);
56
var
mockEngine = GetFailingEngine();
77
var
mockEngine = GetPassingEngine(supportsCredentials: true);
100
var
mockEngine = GetFailingEngine();
116
private CorsAuthorizationFilter GetFilter(
ICorsService
corsService)
165
private
ICorsService
GetFailingEngine()
167
var mockEngine = new Mock<
ICorsService
>();
176
private
ICorsService
GetPassingEngine(bool supportsCredentials = false)
178
var mockEngine = new Mock<
ICorsService
>();