12 references to AddOptions
Aspire.Keycloak.Authentication (2)
AspireKeycloakExtensions.cs (2)
86.AddOptions<JwtBearerOptions>(authenticationScheme) 165.AddOptions<OpenIdConnectOptions>(authenticationScheme)
CookieSessionSample (1)
Startup.cs (1)
22services.AddOptions<CookieAuthenticationOptions>(CookieAuthenticationDefaults.AuthenticationScheme)
Microsoft.AspNetCore.Authentication (1)
AuthenticationBuilder.cs (1)
46Services.AddOptions<TOptions>(authenticationScheme).Validate(o =>
Microsoft.AspNetCore.Authentication.Cookies (1)
CookieExtensions.cs (1)
80builder.Services.AddOptions<CookieAuthenticationOptions>(authenticationScheme).Validate(o => o.Cookie.Expiration == null, "Cookie.Expiration is ignored, use ExpireTimeSpan instead.");
Microsoft.Extensions.Http.Resilience (4)
Hedging\StandardHedgingHandlerBuilderExtensions.cs (1)
68_ = builder.Services.AddOptions<HttpStandardHedgingResilienceOptions>(builder.Name).Configure(configure);
Resilience\HttpStandardResiliencePipelineBuilderExtensions.cs (1)
72_ = builder.Services.AddOptions<HttpStandardResilienceOptions>(builder.PipelineName).Configure(configure);
Resilience\Internal\PipelineKeyProviderHelper.cs (1)
33_ = services.AddOptions<PipelineKeyOptions>(pipelineName).Configure<IServiceProvider>((options, provider) => options.KeyProvider = factory(provider));
Routing\RoutingStrategyBuilderExtensions.cs (1)
120.AddOptions<RequestRoutingOptions>(builder.Name)
Microsoft.Extensions.ML (2)
Builder\BuilderExtensions.cs (2)
136builder.Services.AddOptions<PredictionEnginePoolOptions<TData, TPrediction>>(modelName) 223builder.Services.AddOptions<PredictionEnginePoolOptions<TData, TPrediction>>(modelName)
Microsoft.Extensions.Options (1)
OptionsServiceCollectionExtensions.cs (1)
268=> services.AddOptions<TOptions>(Options.Options.DefaultName);