32 references to Build
Microsoft.AspNetCore.Cors (3)
Infrastructure\CorsEndpointConventionBuilderExtensions.cs (1)
60
var policy = policyBuilder.
Build
();
Infrastructure\CorsMiddlewareExtensions.cs (1)
53
return app.UseMiddleware<CorsMiddleware>(policyBuilder.
Build
());
Infrastructure\CorsOptions.cs (1)
77
var policy = policyBuilder.
Build
();
Microsoft.AspNetCore.Cors.Test (29)
CorsMiddlewareTests.cs (8)
228
.
Build
();
462
.
Build
();
468
.
Build
();
647
.
Build
();
806
var policy = new CorsPolicyBuilder().
Build
();
837
var defaultPolicy = new CorsPolicyBuilder().
Build
();
838
var metadataPolicy = new CorsPolicyBuilder().
Build
();
875
var policy = new CorsPolicyBuilder().
Build
();
CorsOptionsTest.cs (2)
51
policyBuilder.AllowAnyOrigin().
Build
();
55
expectedPolicy = policyBuilder.AllowAnyOrigin().
Build
();
CorsPolicyBuilderTests.cs (19)
26
var corsPolicy = builder.
Build
();
55
var corsPolicy = builder.
Build
();
75
var corsPolicy = builder.
Build
();
99
var corsPolicy = builder.
Build
();
121
var corsPolicy = builder.
Build
();
133
var corsPolicy = builder.
Build
();
169
var corsPolicy = builder.
Build
();
185
var corsPolicy = builder.
Build
();
199
var corsPolicy = builder.
Build
();
213
var corsPolicy = builder.
Build
();
227
var corsPolicy = builder.
Build
();
242
var corsPolicy = builder.
Build
();
257
var corsPolicy = builder.
Build
();
272
var corsPolicy = builder.
Build
();
287
var corsPolicy = builder.
Build
();
301
var corsPolicy = builder.
Build
();
315
var corsPolicy = builder.
Build
();
329
var corsPolicy = builder.
Build
();
342
var ex = Assert.Throws<InvalidOperationException>(() => builder.
Build
());