7 instantiations of CorsOptions
Microsoft.AspNetCore.Cors.Test (7)
CorsMiddlewareTests.cs (1)
641
var corsService = new CorsService(Options.Create(new
CorsOptions
()), NullLoggerFactory.Instance);
CorsOptionsTest.cs (3)
12
var corsOptions = new
CorsOptions
();
29
var corsOptions = new
CorsOptions
();
45
var corsOptions = new
CorsOptions
();
CorsServiceTests.cs (1)
939
options = options ?? new
CorsOptions
();
DefaultCorsPolicyProviderTests.cs (2)
15
var options = new
CorsOptions
();
35
var options = new
CorsOptions
();
21 references to CorsOptions
Aspire.Dashboard (2)
DashboardWebApplication.cs (2)
295
var
corsOptions = _app.Services.GetRequiredService<IOptions<
CorsOptions
>>().Value;
CorsWebSite (1)
Startup.cs (1)
14
services.Configure<
CorsOptions
>(options =>
Microsoft.AspNetCore.Cors (8)
CorsServiceCollectionExtensions.cs (2)
35
/// <param name="setupAction">An <see cref="Action{CorsOptions}"/> to configure the provided <see cref="
CorsOptions
"/>.</param>
37
public static IServiceCollection AddCors(this IServiceCollection services, Action<
CorsOptions
> setupAction)
EnableCorsAttribute.cs (1)
17
/// name defined by <see cref="
CorsOptions
.DefaultPolicyName"/>.
Infrastructure\CorsService.cs (3)
19
private readonly
CorsOptions
_options;
25
/// <param name="options">The option model representing <see cref="
CorsOptions
"/>.</param>
27
public CorsService(IOptions<
CorsOptions
> options, ILoggerFactory loggerFactory)
Infrastructure\DefaultCorsPolicyProvider.cs (2)
13
private readonly
CorsOptions
_options;
19
public DefaultCorsPolicyProvider(IOptions<
CorsOptions
> options)
Microsoft.AspNetCore.Cors.Test (6)
CorsOptionsTest.cs (3)
12
var
corsOptions = new CorsOptions();
29
var
corsOptions = new CorsOptions();
45
var
corsOptions = new CorsOptions();
CorsServiceTests.cs (1)
937
private static CorsService GetCorsService(
CorsOptions
options = null)
DefaultCorsPolicyProviderTests.cs (2)
15
var
options = new CorsOptions();
35
var
options = new CorsOptions();
Microsoft.AspNetCore.Mvc.Cors (4)
DependencyInjection\MvcCorsMvcCoreBuilderExtensions.cs (4)
33
/// <param name="setupAction">An <see cref="Action{MvcOptions}"/> to configure the provided <see cref="
CorsOptions
"/>.</param>
37
Action<
CorsOptions
> setupAction)
49
/// Configures <see cref="
CorsOptions
"/>.
56
Action<
CorsOptions
> setupAction)