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