334 references to Configure
Aspire.Dashboard (1)
DashboardWebApplication.cs (1)
191builder.Services.Configure<HttpsRedirectionOptions>(options => options.HttpsPort = browserHttpsPort);
Aspire.Dashboard.Components.Tests (1)
Layout\MainLayoutTests.cs (1)
141Services.Configure<DashboardOptions>(o => o.Otlp.AuthMode = OtlpAuthMode.Unsecured);
Aspire.Hosting.Azure.Tests (1)
AzureResourceOptionsTests.cs (1)
29builder.Services.Configure<AzureProvisioningOptions>(options =>
Aspire.Hosting.Dapr (1)
IDistributedApplicationBuilderExtensions.cs (1)
28builder.Services.Configure(configure);
Aspire.Hosting.Tests (1)
ManifestGenerationTests.cs (1)
314program.AppBuilder.Services.Configure<PublishingOptions>(options =>
Aspire.Seq (1)
AspireSeqExtensions.cs (1)
65builder.Services.Configure<OpenTelemetryLoggerOptions>(logging => logging.AddProcessor(
Aspire.StackExchange.Redis.Tests (1)
AspireRedisExtensionsTests.cs (1)
43builder.Services.Configure<ConfigurationOptions>(options =>
AzureAppServicesSample (2)
Startup.cs (2)
11services.Configure<IISOptions>(options => 14services.Configure<ForwardedHeadersOptions>(options =>
BasicWebSite (2)
StartupWithCookieTempDataProviderAndCookieConsent.cs (1)
13services.Configure<CookiePolicyOptions>(o =>
StartupWithCustomInvalidModelStateFactory.cs (1)
21services.Configure<ApiBehaviorOptions>(options =>
ClientSample (1)
HubSample.cs (1)
40connectionBuilder.Services.Configure<LoggerFilterOptions>(options =>
CookiePolicySample (1)
Startup.cs (1)
17services.Configure<CookiePolicyOptions>(options =>
CorsWebSite (1)
Startup.cs (1)
14services.Configure<CorsOptions>(options =>
HotAddSample (1)
Startup.cs (1)
23services.Configure<HttpSysOptions>(options =>
HtmlGenerationWebSite (1)
Startup.cs (1)
22services.Configure<MemoryCacheOptions>(o => o.TrackLinkedCacheEntries = true);
http2cat (1)
src\Shared\Http2cat\Http2CatIServiceCollectionExtensions.cs (1)
17services.Configure(configureOptions);
Identity.DefaultUI.WebSite (3)
NoIdentityStartup.cs (1)
21services.Configure<CookiePolicyOptions>(options =>
PocoUserStartup.cs (1)
18services.Configure<CookiePolicyOptions>(options =>
StartupBase.cs (1)
27services.Configure<CookiePolicyOptions>(options =>
IIS.FunctionalTests (1)
src\Shared\Http2cat\Http2CatIServiceCollectionExtensions.cs (1)
17services.Configure(configureOptions);
IIS.LongTests (1)
src\Shared\Http2cat\Http2CatIServiceCollectionExtensions.cs (1)
17services.Configure(configureOptions);
IIS.NewHandler.FunctionalTests (1)
src\Shared\Http2cat\Http2CatIServiceCollectionExtensions.cs (1)
17services.Configure(configureOptions);
IIS.NewShim.FunctionalTests (1)
src\Shared\Http2cat\Http2CatIServiceCollectionExtensions.cs (1)
17services.Configure(configureOptions);
IIS.Tests (1)
Utilities\TestServer.cs (1)
159services.Configure<IISServerOptions>(options => options.MaxRequestBodySize = _options.MaxRequestBodySize);
IISExpress.FunctionalTests (1)
src\Shared\Http2cat\Http2CatIServiceCollectionExtensions.cs (1)
17services.Configure(configureOptions);
IISSample (2)
Startup.cs (2)
24services.Configure<IISOptions>(options => 28services.Configure<ForwardedHeadersOptions>(options =>
Microsoft.AspNetCore.Antiforgery (1)
AntiforgeryServiceCollectionExtensions.cs (1)
61services.Configure(setupAction);
Microsoft.AspNetCore.Antiforgery.Test (1)
AntiforgeryOptionsSetupTest.cs (1)
42serviceCollection.Configure<AntiforgeryOptions>(o =>
Microsoft.AspNetCore.Authentication (2)
AuthenticationBuilder.cs (1)
34Services.Configure<AuthenticationOptions>(o =>
AuthenticationServiceCollectionExtensions.cs (1)
57services.Configure(configureOptions);
Microsoft.AspNetCore.Authentication.Certificate (1)
CertificateAuthenticationExtensions.cs (1)
93builder.Services.Configure(configureOptions);
Microsoft.AspNetCore.Authentication.Core (1)
AuthenticationCoreServiceCollectionExtensions.cs (1)
42services.Configure(configureOptions);
Microsoft.AspNetCore.Authentication.Test (1)
RemoteAuthenticationTests.cs (1)
25s.Configure<AuthenticationOptions>(o => o.DefaultScheme = DefaultScheme);
Microsoft.AspNetCore.Authorization (6)
AuthorizationBuilder.cs (5)
35Services.Configure<AuthorizationOptions>(o => o.InvokeHandlersAfterFailure = invoke); 48Services.Configure<AuthorizationOptions>(o => o.DefaultPolicy = policy); 63Services.Configure<AuthorizationOptions>(o => o.FallbackPolicy = policy); 75Services.Configure<AuthorizationOptions>(o => o.AddPolicy(name, policy)); 87Services.Configure<AuthorizationOptions>(o => o.AddPolicy(name, configurePolicy));
AuthorizationServiceCollectionExtensions.cs (1)
50services.Configure(configure);
Microsoft.AspNetCore.Components.Endpoints (1)
DependencyInjection\RazorComponentsServiceCollectionExtensions.cs (1)
85services.Configure(configure);
Microsoft.AspNetCore.Components.Server (3)
DependencyInjection\ComponentServiceCollectionExtensions.cs (1)
92services.Configure(configure);
DependencyInjection\ServerSideBlazorBuilderExtensions.cs (2)
25builder.Services.Configure<CircuitOptions>(configure); 41builder.Services.Configure<HubOptions<ComponentHub>>(configure);
Microsoft.AspNetCore.Components.Server.Tests (2)
DependencyInjection\ComponentServiceCollectionExtensionsTest.cs (2)
35services.Configure<HubOptions>(options => 61services.Configure<HubOptions>(options =>
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
WebAssemblyRazorComponentsBuilderExtensions.cs (1)
44builder.Services.Configure(configure);
Microsoft.AspNetCore.ConcurrencyLimiter (2)
QueuePolicies\QueuePolicyServiceCollectionExtensions.cs (2)
22services.Configure(configure); 36services.Configure(configure);
Microsoft.AspNetCore.CookiePolicy (1)
CookiePolicyServiceCollectionExtensions.cs (1)
24return services.Configure(configureOptions);
Microsoft.AspNetCore.CookiePolicy.Test (1)
CookieConsentTests.cs (1)
717services.Configure(configureOptions);
Microsoft.AspNetCore.Cors (1)
CorsServiceCollectionExtensions.cs (1)
43services.Configure(setupAction);
Microsoft.AspNetCore.DataProtection (9)
DataProtectionBuilderExtensions.cs (8)
44builder.Services.Configure<DataProtectionOptions>(options => 66builder.Services.Configure<KeyManagementOptions>(options => 137builder.Services.Configure(setupAction); 154builder.Services.Configure<KeyManagementOptions>(options => 229builder.Services.Configure<XmlKeyDecryptionOptions>(o => o.AddKeyDecryptionCertificate(certificate)); 278builder.Services.Configure<XmlKeyDecryptionOptions>(o => 410builder.Services.Configure<KeyManagementOptions>(options => 499builder.Services.Configure<KeyManagementOptions>(options =>
DataProtectionServiceCollectionExtensions.cs (1)
55services.Configure(setupAction);
Microsoft.AspNetCore.DataProtection.StackExchangeRedis (1)
RedisDataProtectionBuilderExtensions.cs (1)
61builder.Services.Configure<KeyManagementOptions>(options =>
Microsoft.AspNetCore.Diagnostics (1)
ExceptionHandler\ExceptionHandlerServiceCollectionExtensions.cs (1)
26return services.Configure(configureOptions);
Microsoft.AspNetCore.Diagnostics.Middleware (1)
Logging\RequestHeadersEnricherServiceCollectionExtensions.cs (1)
43.Configure(configure)
Microsoft.AspNetCore.Diagnostics.Tests (1)
ExceptionHandlerTest.cs (1)
619services.Configure<ExceptionHandlerOptions>(options =>
Microsoft.AspNetCore.Grpc.JsonTranscoding (1)
GrpcJsonTranscodingServiceExtensions.cs (1)
45builder.Services.Configure(configureOptions);
Microsoft.AspNetCore.HeaderParsing (1)
HeaderParsingServiceCollectionExtensions.cs (1)
56.Configure(configure);
Microsoft.AspNetCore.HeaderPropagation (1)
DependencyInjection\HeaderPropagationServiceCollectionExtensions.cs (1)
40services.Configure(configureOptions);
Microsoft.AspNetCore.HostFiltering (1)
HostFilteringServicesExtensions.cs (1)
25services.Configure(configureOptions);
Microsoft.AspNetCore.Hosting (7)
GenericHost\GenericWebHostBuilder.cs (5)
64services.Configure<GenericWebHostServiceOptions>(options => 109services.Configure<GenericWebHostServiceOptions>(options => 264services.Configure<GenericWebHostServiceOptions>(options => 325services.Configure<GenericWebHostServiceOptions>(options => 348services.Configure<GenericWebHostServiceOptions>(options =>
GenericHost\SlimWebHostBuilder.cs (2)
40services.Configure<GenericWebHostServiceOptions>(options => 85services.Configure<GenericWebHostServiceOptions>(options =>
Microsoft.AspNetCore.Hosting.Tests (9)
Fakes\Startup.cs (7)
18services.Configure<FakeOptions>(o => o.Configured = true); 24services.Configure<FakeOptions>(o => 34services.Configure<FakeOptions>(o => 44services.Configure<FakeOptions>(o => 54services.Configure<FakeOptions>(o => 75services.Configure<FakeOptions>(o => 86services.Configure<FakeOptions>(o =>
Fakes\StartupBase.cs (1)
13services.Configure<FakeOptions>(o =>
Fakes\StartupCaseInsensitive.cs (1)
15services.Configure<FakeOptions>(o =>
Microsoft.AspNetCore.Http (1)
Timeouts\RequestTimeoutsIServiceCollectionExtensions.cs (1)
33return services.AddRequestTimeouts().Configure(configure);
Microsoft.AspNetCore.Http.Connections (1)
ConnectionsDependencyInjectionExtensions.cs (1)
40return services.Configure(options)
Microsoft.AspNetCore.Http.Connections.Tests (2)
HttpConnectionDispatcherTests.cs (2)
3512services.Configure<KeyManagementOptions>(options => 3662services.Configure<KeyManagementOptions>(options =>
Microsoft.AspNetCore.Http.Extensions (2)
HttpJsonServiceExtensions.cs (1)
25services.Configure<JsonOptions>(configureOptions);
ProblemDetailsServiceCollectionExtensions.cs (1)
48services.Configure(configure);
Microsoft.AspNetCore.Http.Extensions.Tests (14)
RequestDelegateGenerator\RequestDelegateCreationTests.Forms.cs (2)
923serviceCollection.Configure<RouteHandlerOptions>(options => options.ThrowOnBadRequest = throwOnBadRequests); 994serviceCollection.Configure<RouteHandlerOptions>(options => options.ThrowOnBadRequest = true);
RequestDelegateGenerator\RequestDelegateCreationTests.JsonBodyOrService.cs (1)
193serviceCollection.Configure<RouteHandlerOptions>(options => options.ThrowOnBadRequest = true);
RequestDelegateGenerator\RequestDelegateCreationTests.Logging.cs (11)
144serviceCollection.Configure<RouteHandlerOptions>(options => options.ThrowOnBadRequest = true); 181serviceCollection.Configure<RouteHandlerOptions>(options => options.ThrowOnBadRequest = true); 262serviceCollection.Configure<RouteHandlerOptions>(options => options.ThrowOnBadRequest = true); 342serviceCollection.Configure<RouteHandlerOptions>(options => options.ThrowOnBadRequest = true); 379serviceCollection.Configure<RouteHandlerOptions>(options => options.ThrowOnBadRequest = shouldThrow); 425serviceCollection.Configure<RouteHandlerOptions>(options => options.ThrowOnBadRequest = shouldThrow); 474serviceCollection.Configure<RouteHandlerOptions>(options => options.ThrowOnBadRequest = throwOnBadRequests); 511serviceCollection.Configure<RouteHandlerOptions>(options => options.ThrowOnBadRequest = false); 552serviceCollection.Configure<RouteHandlerOptions>(options => options.ThrowOnBadRequest = true); 592serviceCollection.Configure<RouteHandlerOptions>(options => options.ThrowOnBadRequest = false); 632serviceCollection.Configure<RouteHandlerOptions>(options => options.ThrowOnBadRequest = true);
Microsoft.AspNetCore.HttpLogging (2)
HttpLoggingServicesExtensions.cs (2)
41services.Configure(configureOptions); 69services.Configure(configureOptions);
Microsoft.AspNetCore.HttpOverrides (1)
CertificateForwardingServiceExtensions.cs (1)
27return services.Configure(configure);
Microsoft.AspNetCore.HttpOverrides.Tests (1)
ForwardedHeadersMiddlewareTest.cs (1)
1060services.Configure<ForwardedHeadersOptions>(options =>
Microsoft.AspNetCore.HttpsPolicy (2)
HstsServicesExtensions.cs (1)
25services.Configure(configureOptions);
HttpsRedirectionServicesExtensions.cs (1)
24services.Configure(configureOptions);
Microsoft.AspNetCore.HttpsPolicy.Tests (4)
HstsMiddlewareTests.cs (1)
90services.Configure<HstsOptions>(options =>
HttpsPolicyTests.cs (2)
35services.Configure<HttpsRedirectionOptions>(options => 40services.Configure<HstsOptions>(options =>
HttpsRedirectionMiddlewareTests.cs (1)
85services.Configure<HttpsRedirectionOptions>(options =>
Microsoft.AspNetCore.Identity (1)
IdentityServiceCollectionExtensions.cs (1)
111services.Configure(setupAction);
Microsoft.AspNetCore.Identity.FunctionalTests (16)
Infrastructure\FunctionalTestsServiceCollectionExtensions.cs (2)
42services.Configure<IdentityOptions>(o => o.SignIn.RequireConfirmedEmail = true); 55services.Configure<IdentityOptions>(o => o.Lockout.MaxFailedAccessAttempts = 0);
MapIdentityApiTests.cs (10)
428services.Configure<IdentityOptions>(options => 457services.Configure<IdentityOptions>(options => 486services.Configure<IdentityOptions>(options => 511services.Configure<IdentityOptions>(options => 536services.Configure<IdentityOptions>(options => 596services.Configure<IdentityOptions>(options => 639services.Configure<IdentityOptions>(options => 956services.Configure<IdentityOptions>(options => 1027services.Configure<IdentityOptions>(options => 1118services.Configure<IdentityOptions>(options =>
RegistrationTests.cs (4)
44void ConfigureTestServices(IServiceCollection services) { services.Configure<IdentityOptions>(o => o.SignIn.RequireConfirmedAccount = true); }; 75services.Configure<IdentityOptions>(o => o.SignIn.RequireConfirmedAccount = true); 138services.Configure<IdentityOptions>(o => o.SignIn.RequireConfirmedAccount = true) 163.Configure<IdentityOptions>(o => o.SignIn.RequireConfirmedAccount = true)
Microsoft.AspNetCore.Identity.InMemory.Test (3)
FunctionalTest.cs (3)
32var server = await CreateServer(services => services.Configure<IdentityOptions>(options => 80services.Configure<SecurityStampValidatorOptions>(options => 172services.Configure<SecurityStampValidatorOptions>(options =>
Microsoft.AspNetCore.Identity.Specification.Tests (1)
UserManagerSpecificationTests.cs (1)
1544configureServices: s => s.Configure<IdentityOptions>(
Microsoft.AspNetCore.Identity.Test (1)
IdentityOptionsTest.cs (1)
40var services = new ServiceCollection().Configure<IdentityOptions>(options => options.Password.RequiredLength = -1);
Microsoft.AspNetCore.Localization (1)
RequestLocalizationServiceCollectionExtensions.cs (1)
24return services.Configure(configureOptions);
Microsoft.AspNetCore.Mvc (1)
MvcServiceCollectionExtensions.cs (1)
52builder.Services.Configure(setupAction);
Microsoft.AspNetCore.Mvc.Core (12)
DependencyInjection\MvcCoreMvcBuilderExtensions.cs (5)
33builder.Services.Configure(setupAction); 51builder.Services.Configure(configure); 68builder.Services.Configure<MvcOptions>((options) => setupAction(options.FormatterMappings)); 150builder.Services.Configure<MvcCompatibilityOptions>(o => o.CompatibilityVersion = version); 167builder.Services.Configure(setupAction);
DependencyInjection\MvcCoreMvcCoreBuilderExtensions.cs (6)
35builder.Services.Configure(setupAction); 52builder.Services.Configure(configure); 81builder.Services.Configure<MvcOptions>((options) => setupAction(options.FormatterMappings)); 118builder.Services.Configure(setupAction); 210builder.Services.Configure(setupAction); 228builder.Services.Configure<MvcCompatibilityOptions>(o => o.CompatibilityVersion = version);
DependencyInjection\MvcCoreServiceCollectionExtensions.cs (1)
123services.Configure(setupAction);
Microsoft.AspNetCore.Mvc.Cors (2)
DependencyInjection\MvcCorsMvcCoreBuilderExtensions.cs (2)
43builder.Services.Configure(setupAction); 61builder.Services.Configure(setupAction);
Microsoft.AspNetCore.Mvc.DataAnnotations (1)
DataAnnotationsLocalizationServices.cs (1)
20services.Configure(setupAction);
Microsoft.AspNetCore.Mvc.Formatters.Xml (6)
DependencyInjection\MvcXmlMvcBuilderExtensions.cs (3)
28builder.Services.Configure(setupAction); 59builder.Services.Configure(setupAction); 89builder.Services.Configure(setupAction);
DependencyInjection\MvcXmlMvcCoreBuilderExtensions.cs (3)
29builder.Services.Configure(setupAction); 60builder.Services.Configure(setupAction); 90builder.Services.Configure(setupAction);
Microsoft.AspNetCore.Mvc.FunctionalTests (3)
ErrorPageTests.cs (1)
53factory = factory.WithWebHostBuilder(b => b.ConfigureTestServices(serviceCollection => serviceCollection.Configure<MvcRazorRuntimeCompilationOptions>(ConfigureRuntimeCompilationOptions)));
RazorBuildTest.cs (1)
29.WithWebHostBuilder(b => b.ConfigureTestServices(serviceCollection => serviceCollection.Configure<MvcRazorRuntimeCompilationOptions>(ConfigureRuntimeCompilationOptions)));
RazorRuntimeCompilationHostingStartupTest.cs (1)
26.WithWebHostBuilder(b => b.ConfigureTestServices(serviceCollection => serviceCollection.Configure<MvcRazorRuntimeCompilationOptions>(ConfigureRuntimeCompilationOptions)));
Microsoft.AspNetCore.Mvc.IntegrationTests (1)
ModelBindingTestHelper.cs (1)
202serviceCollection.Configure(updateOptions);
Microsoft.AspNetCore.Mvc.Localization (1)
MvcLocalizationServices.cs (1)
35services.Configure<RazorViewEngineOptions>(
Microsoft.AspNetCore.Mvc.NewtonsoftJson (2)
DependencyInjection\NewtonsoftJsonMvcBuilderExtensions.cs (1)
40builder.Services.Configure(setupAction);
DependencyInjection\NewtonsoftJsonMvcCoreBuilderExtensions.cs (1)
50builder.Services.Configure(setupAction);
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (1)
NewtonsoftJsonOutputFormatterTest.cs (1)
61.Configure<MvcNewtonsoftJsonOptions>(o =>
Microsoft.AspNetCore.Mvc.Razor (2)
DependencyInjection\MvcRazorMvcBuilderExtensions.cs (1)
28builder.Services.Configure(setupAction);
DependencyInjection\MvcRazorMvcCoreBuilderExtensions.cs (1)
59builder.Services.Configure(setupAction);
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (2)
DependencyInjection\RazorRuntimeCompilationMvcBuilderExtensions.cs (1)
38builder.Services.Configure(setupAction);
DependencyInjection\RazorRuntimeCompilationMvcCoreBuilderExtensions.cs (1)
50builder.Services.Configure(setupAction);
Microsoft.AspNetCore.Mvc.RazorPages (5)
DependencyInjection\MvcRazorPagesMvcBuilderExtensions.cs (3)
28builder.Services.Configure(setupAction); 48builder.Services.Configure<RazorPagesOptions>(options => options.RootDirectory = rootDirectory); 61builder.Services.Configure<RazorPagesOptions>(options => options.RootDirectory = "/");
DependencyInjection\MvcRazorPagesMvcCoreBuilderExtensions.cs (2)
58builder.Services.Configure(setupAction); 74builder.Services.Configure<RazorPagesOptions>(options => options.RootDirectory = rootDirectory);
Microsoft.AspNetCore.Mvc.TagHelpers (2)
DependencyInjection\TagHelperExtensions.cs (2)
40builder.Services.Configure(configure); 56builder.Services.Configure(configure);
Microsoft.AspNetCore.Mvc.ViewFeatures (5)
DependencyInjection\MvcViewFeaturesMvcBuilderExtensions.cs (2)
32builder.Services.Configure(setupAction); 114builder.Services.Configure(setupAction);
DependencyInjection\MvcViewFeaturesMvcCoreBuilderExtensions.cs (3)
84builder.Services.Configure(setupAction); 107builder.Services.Configure(setupAction); 125builder.Services.Configure(setupAction);
Microsoft.AspNetCore.OutputCaching (1)
OutputCacheServiceCollectionExtensions.cs (1)
54services.Configure(configureOptions);
Microsoft.AspNetCore.OutputCaching.StackExchangeRedis (1)
StackExchangeRedisCacheServiceCollectionExtensions.cs (1)
30services.Configure(setupAction);
Microsoft.AspNetCore.RateLimiting (1)
RateLimiterServiceCollectionExtensions.cs (1)
26services.Configure(configureOptions);
Microsoft.AspNetCore.RequestDecompression (1)
RequestDecompressionServiceExtensions.cs (1)
38services.Configure(configureOptions);
Microsoft.AspNetCore.ResponseCaching (1)
ResponseCachingServicesExtensions.cs (1)
40services.Configure(configureOptions);
Microsoft.AspNetCore.ResponseCompression (1)
ResponseCompressionServicesExtensions.cs (1)
39services.Configure(configureOptions);
Microsoft.AspNetCore.ResponseCompression.Tests (1)
ResponseCompressionMiddlewareTest.cs (1)
157services.Configure<GzipCompressionProviderOptions>(options => options.Level = CompressionLevel.NoCompression);
Microsoft.AspNetCore.Rewrite.Tests (6)
MiddlewareTests.cs (6)
187services.Configure<RewriteOptions>(options => 884builder.Services.Configure<RewriteOptions>(options => 920builder.Services.Configure<RewriteOptions>(options => 956builder.Services.Configure<RewriteOptions>(options => 993builder.Services.Configure<RewriteOptions>(options => 1030builder.Services.Configure<RewriteOptions>(options =>
Microsoft.AspNetCore.Routing (1)
DependencyInjection\RoutingServiceCollectionExtensions.cs (1)
136services.Configure(configureOptions);
Microsoft.AspNetCore.Routing.Tests (23)
DefaultLinkGeneratorProcessTemplateTest.cs (11)
262s.Configure<RouteOptions>(o => o.LowercaseUrls = true); 291s.Configure<RouteOptions>(o => o.LowercaseUrls = true); 347s.Configure<RouteOptions>(o => o.LowercaseUrls = true); 380s.Configure<RouteOptions>(o => 414s.Configure<RouteOptions>(o => o.AppendTrailingSlash = true); 444s.Configure<RouteOptions>(o => 479s.Configure<RouteOptions>(o => o.LowercaseUrls = true); 512s.Configure<RouteOptions>(o => o.LowercaseUrls = false); 545s.Configure<RouteOptions>(o => 583s.Configure<RouteOptions>(o => 621s.Configure<RouteOptions>(o => o.AppendTrailingSlash = false);
DefaultLinkGeneratorTest.cs (4)
177s.Configure<RouteOptions>(o => 203s.Configure<RouteOptions>(o => 315s.Configure<RouteOptions>(o => 341s.Configure<RouteOptions>(o =>
EndpointRoutingMiddlewareFormOptionsTest.cs (1)
96var serviceProvider = new ServiceCollection().Configure<FormOptions>(options =>
InlineRouteParameterParserTests.cs (1)
960services.Configure<RouteOptions>(options =>
RouteCollectionTest.cs (2)
605services.Configure(options); 626services.Configure<RouteOptions>(options);
RouteHandlerOptionsTests.cs (1)
38services.Configure<RouteHandlerOptions>(options =>
RouteTest.cs (1)
1764services.Configure<RouteOptions>(ConfigureRouteOptions);
RoutingServiceCollectionExtensionsTests.cs (1)
69services.Configure<RouteOptions>(options =>
TemplateParserDefaultValuesTests.cs (1)
132services.Configure<RouteOptions>(options => {
Microsoft.AspNetCore.Server.HttpSys (1)
WebHostBuilderHttpSysExtensions.cs (1)
68services.Configure(options);
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
src\Shared\Http2cat\Http2CatIServiceCollectionExtensions.cs (1)
17services.Configure(configureOptions);
Microsoft.AspNetCore.Server.IIS (1)
WebHostBuilderIISExtensions.cs (1)
47services.Configure<IISServerOptions>(
Microsoft.AspNetCore.Server.IISIntegration (2)
WebHostBuilderIISExtensions.cs (2)
92services.Configure<ForwardedHeadersOptions>(options => 96services.Configure<IISOptions>(options =>
Microsoft.AspNetCore.Server.Kestrel (2)
WebHostBuilderKestrelExtensions.cs (2)
135services.Configure(options); 171services.Configure<KestrelServerOptions>(options =>
Microsoft.AspNetCore.Server.Kestrel.Tests (1)
WebHostBuilderKestrelExtensionsTests.cs (1)
28services.Configure<KestrelServerOptions>(options =>
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (1)
WebHostBuilderNamedPipeExtensions.cs (1)
51services.Configure(configureOptions);
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (1)
WebHostBuilderQuicExtensions.cs (1)
44services.Configure(configureOptions);
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (1)
WebHostBuilderSocketExtensions.cs (1)
48services.Configure(configureOptions);
Microsoft.AspNetCore.Session (1)
SessionServiceCollectionExtensions.cs (1)
43services.Configure(configure);
Microsoft.AspNetCore.Session.Tests (1)
SessionTests.cs (1)
481services.Configure<MemoryCacheOptions>(o => o.Clock = clock);
Microsoft.AspNetCore.SignalR (3)
SignalRDependencyInjectionExtensions.cs (3)
28signalrBuilder.Services.Configure(configure); 44services.Configure<WebSocketOptions>(o => o.KeepAliveInterval = TimeSpan.Zero); 62services.Configure(configure);
Microsoft.AspNetCore.SignalR.Client (3)
HubConnectionBuilderHttpExtensions.cs (3)
29hubConnectionBuilder.Services.Configure<HttpConnectionOptions>(options => options.UseStatefulReconnect = true); 142hubConnectionBuilder.Services.Configure<HttpConnectionOptions>(o => 153hubConnectionBuilder.Services.Configure(configureHttpConnection);
Microsoft.AspNetCore.SignalR.Client.Core (2)
HubConnectionBuilderExtensions.cs (2)
75hubConnectionBuilder.Services.Configure<HubConnectionOptions>(o => o.ServerTimeout = timeout); 87hubConnectionBuilder.Services.Configure<HubConnectionOptions>(o => o.KeepAliveInterval = interval);
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (4)
HubConnectionTests.cs (2)
2271connectionBuilder.Services.Configure<HttpConnectionOptions>(o => 2815connectionBuilder.Services.Configure<HubConnectionOptions>(o => o.StatefulReconnectBufferSize = 500);
Startup.cs (1)
69services.Configure<KeyManagementOptions>(options =>
VersionStartup.cs (1)
32services.Configure<KeyManagementOptions>(options =>
Microsoft.AspNetCore.SignalR.Protocols.Json (1)
JsonProtocolDependencyInjectionExtensions.cs (1)
39builder.Services.Configure(configure);
Microsoft.AspNetCore.SignalR.Protocols.MessagePack (1)
MessagePackProtocolDependencyInjectionExtensions.cs (1)
42builder.Services.Configure(configure);
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (1)
NewtonsoftJsonProtocolDependencyInjectionExtensions.cs (1)
42builder.Services.Configure(configure);
Microsoft.AspNetCore.SignalR.StackExchangeRedis (1)
RedisDependencyInjectionExtensions.cs (1)
47signalrBuilder.Services.Configure(configure);
Microsoft.AspNetCore.SignalR.Tests (11)
HubConnectionHandlerTests.cs (10)
196services.Configure<HubOptions>(options => 2696services.Configure<HubOptions>(options => 2742services.Configure<HubOptions>(options => 2804services.Configure<HubOptions>(options => 2840services.Configure<HubOptions>(options => 2869services.Configure<HubOptions>(options => 2903services.Configure<HubOptions>(options => 3012services.Configure<HubOptions>(options => 3071services.Configure<HubOptions>(options => 3591services.Configure<HubOptions>(options =>
Startup.cs (1)
76services.Configure<KeyManagementOptions>(options =>
Microsoft.AspNetCore.TestHost (1)
WebHostBuilderExtensions.cs (1)
43services.Configure(configureOptions);
Microsoft.AspNetCore.Testing (1)
ServiceFakesWebHostExtensions.cs (1)
59services.Configure<FakeCertificateOptions>(options =>
Microsoft.AspNetCore.Tests (1)
WebApplicationTests.cs (1)
2644builder.Services.AddRoutingCore().Configure<RouteOptions>(options =>
Microsoft.AspNetCore.WebSockets (1)
WebSocketsDependencyInjectionExtensions.cs (1)
24return services.Configure(configure);
Microsoft.Extensions.Caching.Hybrid (1)
HybridCacheServiceExtensions.cs (1)
25_ = services.Configure(setupAction);
Microsoft.Extensions.Caching.Memory (2)
MemoryCacheServiceCollectionExtensions.cs (2)
47services.Configure(setupAction); 99services.Configure(setupAction);
Microsoft.Extensions.Caching.SqlServer (1)
SqlServerCachingServicesExtensions.cs (1)
29services.Configure(setupAction);
Microsoft.Extensions.Caching.StackExchangeRedis (1)
StackExchangeRedisCacheServiceCollectionExtensions.cs (1)
31services.Configure(setupAction);
Microsoft.Extensions.Compliance.Redaction (2)
RedactionBuilder.cs (2)
42_ = Services.Configure<RedactorProviderOptions>(options => options.Redactors[c] = redactorType); 52_ = Services.Configure<RedactorProviderOptions>(options => options.FallbackRedactor = typeof(T));
Microsoft.Extensions.Diagnostics.Abstractions (1)
Metrics\MetricsBuilderExtensions.Rules.cs (1)
106builder.Services.Configure(configureOptions);
Microsoft.Extensions.Diagnostics.HealthChecks (1)
DependencyInjection\HealthChecksBuilder.cs (1)
23Services.Configure<HealthCheckServiceOptions>(options =>
Microsoft.Extensions.Diagnostics.HealthChecks.Common (1)
CommonHealthChecksExtensions.TelemetryPublisher.cs (1)
49.Configure(Throw.IfNull(configure))
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (2)
HealthCheckPublisherHostedServiceTest.cs (2)
759serviceCollection.Configure<HealthCheckPublisherOptions>(options => 776serviceCollection.Configure(configurePublisherOptions);
Microsoft.Extensions.Diagnostics.Probes (1)
TcpEndpointProbesExtensions.cs (1)
72_ = services.Configure(configure);
Microsoft.Extensions.Diagnostics.Testing (1)
Logging\FakeLoggerBuilderExtensions.cs (1)
49_ = builder.Services.Configure(configure);
Microsoft.Extensions.Hosting (4)
HostBuilder.cs (1)
328services.AddOptions().Configure<HostOptions>(options => { options.Initialize(hostBuilderContext.Configuration); });
HostingHostBuilderExtensions.cs (3)
123(context, collection) => collection.Configure<HostOptions>(options => configureOptions(context, options))); 134return hostBuilder.ConfigureServices(collection => collection.Configure(configureOptions)); 366collection.Configure(configureOptions);
Microsoft.Extensions.Hosting.Systemd (1)
SystemdHostBuilderExtensions.cs (1)
81services.Configure<ConsoleLoggerOptions>(options =>
Microsoft.Extensions.Hosting.WindowsServices (1)
WindowsServiceLifetimeHostBuilderExtensions.cs (1)
122services.Configure(configure);
Microsoft.Extensions.Http.Diagnostics (1)
Latency\HttpClientLatencyTelemetryExtensions.cs (1)
83.Configure(configure);
Microsoft.Extensions.Http.Resilience (2)
Resilience\ResilienceHttpClientBuilderExtensions.Resilience.cs (2)
136_ = services.Configure<ResiliencePipelineRegistryOptions<HttpKey>>(options => 145.Configure<TelemetryOptions>(options => options.MeteringEnrichers.Add(new HttpResilienceMetricsEnricher()));
Microsoft.Extensions.Http.Resilience.Tests (1)
Resilience\HttpClientBuilderExtensionsTests.Resilience.cs (1)
130clientBuilder.Services.Configure<TelemetryOptions>(o => o.MeteringEnrichers.Add(enricher));
Microsoft.Extensions.Identity.Core (2)
IdentityBuilder.cs (1)
150Services.Configure<IdentityOptions>(options =>
IdentityServiceCollectionExtensions.cs (1)
52services.Configure(setupAction);
Microsoft.Extensions.Localization (1)
LocalizationServiceCollectionExtensions.cs (1)
66services.Configure(setupAction);
Microsoft.Extensions.Logging (2)
FilterLoggingBuilderExtensions.cs (1)
194builder.Services.Configure(configureOptions);
LoggingBuilderExtensions.cs (1)
60builder.Services.Configure(action);
Microsoft.Extensions.Logging.Console (3)
ConsoleLoggerExtensions.cs (3)
56builder.Services.Configure(configure); 118builder.Services.Configure(configure); 153builder.Services.Configure(configure);
Microsoft.Extensions.Logging.EventLog (1)
EventLoggerFactoryExtensions.cs (1)
92builder.Services.Configure(configure);
Microsoft.Extensions.Options (3)
OptionsServiceCollectionExtensions.cs (3)
118/// Note: These are run after all <see cref="Configure{TOptions}(IServiceCollection, Action{TOptions})"/>. 129/// Note: These are run after all <see cref="Configure{TOptions}(IServiceCollection, Action{TOptions})"/>. 149/// Note: These are run after all <see cref="Configure{TOptions}(IServiceCollection, Action{TOptions})"/>.
Microsoft.Extensions.Options.Contextual.Tests (1)
AcceptanceTests.cs (1)
86.Configure<WeatherForecastOptions>(options => options.ForecastDays = 7)
Microsoft.Extensions.ServiceDiscovery (3)
ServiceDiscoveryHttpClientBuilderExtensions.cs (1)
48services.Configure<DisableGrpcLoadBalancingFilterOptions>(o => o.ClientNames.Add(name));
ServiceDiscoveryServiceCollectionExtensions.cs (2)
71services.Configure(configureOptions); 100services.Configure(configureOptions);
Microsoft.Extensions.ServiceDiscovery.Tests (2)
ConfigurationServiceEndpointResolverTests.cs (2)
67.Configure<ServiceDiscoveryOptions>(o => 151.Configure<ServiceDiscoveryOptions>(o =>
Microsoft.Extensions.ServiceDiscovery.Yarp.Tests (1)
YarpServiceDiscoveryTests.cs (1)
208.Configure<ServiceDiscoveryOptions>(o =>
Microsoft.Extensions.Telemetry (6)
Enrichment\ApplicationEnricherServiceCollectionExtensions.cs (1)
44.Configure(configure);
Enrichment\ProcessEnricherServiceCollectionExtensions.cs (1)
45.Configure(configure);
Latency\LatencyConsoleExtensions.cs (1)
46_ = services.Configure(configure);
Latency\LatencyContextExtensions.cs (1)
45_ = services.Configure(configure);
Logging\LoggingEnrichmentExtensions.cs (1)
38_ = builder.Services.Configure(configure);
Logging\LoggingRedactionExtensions.cs (1)
38_ = builder.Services.Configure(configure);
Microsoft.Extensions.Telemetry.Abstractions (1)
Latency\Registration\LatencyRegistryServiceCollectionExtensions.cs (1)
83_ = services.Configure(action);
Microsoft.Extensions.Telemetry.Tests (2)
Logging\ExtendedLoggerTests.cs (2)
673builder.Services.Configure<LoggerFilterOptions>(options => options.CaptureScopes = false); 703builder.Services.Configure<LoggerFilterOptions>(options => options.CaptureScopes = false);
Microsoft.Extensions.WebEncoders (1)
EncoderServiceCollectionExtensions.cs (1)
55services.Configure(setupAction);
Mvc.RoutingWebSite (6)
StartupForDynamic.cs (1)
24services.Configure<RouteOptions>(options => options.ConstraintMap["slugify"] = typeof(SlugifyParameterTransformer));
StartupForDynamicAndRazorPages.cs (1)
19services.Configure<RouteOptions>(options => options.ConstraintMap["slugify"] = typeof(SlugifyParameterTransformer));
StartupForDynamicOrder.cs (1)
39services.Configure<RouteOptions>(options => options.ConstraintMap["slugify"] = typeof(SlugifyParameterTransformer));
StartupForEndpointFilters.cs (1)
17services.Configure<RouteOptions>(options => options.ConstraintMap["slugify"] = typeof(SlugifyParameterTransformer));
StartupForFallback.cs (1)
22services.Configure<RouteOptions>(options => options.ConstraintMap["slugify"] = typeof(SlugifyParameterTransformer));
StartupForGroups.cs (1)
17services.Configure<RouteOptions>(options => options.ConstraintMap["slugify"] = typeof(SlugifyParameterTransformer));
OpenIdConnectSample (1)
Startup.cs (1)
86services.Configure<CookiePolicyOptions>(options =>
RazorPagesWebSite (1)
StartupWithClientValidationDisabled.cs (1)
21services.Configure<MvcViewOptions>(o => o.HtmlHelperOptions.ClientValidationEnabled = false);
ResponseCompressionSample (1)
Startup.cs (1)
14services.Configure<GzipCompressionProviderOptions>(options => options.Level = CompressionLevel.Fastest);
RewriteSample (1)
Startup.cs (1)
20services.Configure<RewriteOptions>(options =>
SelfHostServer (1)
Startup.cs (1)
19services.Configure<HttpSysOptions>(options =>
SignalR.Client.FunctionalTestApp (1)
Startup.cs (1)
103services.Configure<KeyManagementOptions>(options =>
Sockets.BindTests (1)
src\Servers\Kestrel\shared\test\TransportTestHelpers\TestServer.cs (1)
112services.Configure<HostOptions>(option =>
Sockets.FunctionalTests (1)
src\Servers\Kestrel\shared\test\TransportTestHelpers\TestServer.cs (1)
112services.Configure<HostOptions>(option =>
XmlFormattersWebSite (1)
Startup.cs (1)
20services.Configure<MvcOptions>(options =>