24 implementations of IPostConfigureOptions
Aspire.Dashboard (1)
Configuration\PostConfigureDashboardOptions.cs (1)
10public sealed class PostConfigureDashboardOptions : IPostConfigureOptions<DashboardOptions>
Microsoft.AspNetCore.Authentication (2)
AuthenticationBuilder.cs (2)
113private sealed class EnsureSignInScheme<TOptions> : IPostConfigureOptions<TOptions> where TOptions : RemoteAuthenticationOptions 129private sealed class PostConfigureAuthenticationSchemeOptions<TOptions> : IPostConfigureOptions<TOptions>
Microsoft.AspNetCore.Authentication.Cookies (1)
PostConfigureCookieAuthenticationOptions.cs (1)
12public class PostConfigureCookieAuthenticationOptions : IPostConfigureOptions<CookieAuthenticationOptions>
Microsoft.AspNetCore.Authentication.JwtBearer (1)
JwtBearerPostConfigureOptions.cs (1)
14public class JwtBearerPostConfigureOptions : IPostConfigureOptions<JwtBearerOptions>
Microsoft.AspNetCore.Authentication.Negotiate (1)
PostConfigureNegotiateOptions.cs (1)
17public class PostConfigureNegotiateOptions : IPostConfigureOptions<NegotiateOptions>
Microsoft.AspNetCore.Authentication.OAuth (1)
OAuthPostConfigureOptions.cs (1)
15public class OAuthPostConfigureOptions<TOptions, THandler> : IPostConfigureOptions<TOptions>
Microsoft.AspNetCore.Authentication.OpenIdConnect (1)
OpenIdConnectPostConfigureOptions.cs (1)
16public class OpenIdConnectPostConfigureOptions : IPostConfigureOptions<OpenIdConnectOptions>
Microsoft.AspNetCore.Authentication.Twitter (1)
TwitterPostConfigureOptions.cs (1)
13public class TwitterPostConfigureOptions : IPostConfigureOptions<TwitterOptions>
Microsoft.AspNetCore.Authentication.WsFederation (1)
WsFederationPostConfigureOptions.cs (1)
16public class WsFederationPostConfigureOptions : IPostConfigureOptions<WsFederationOptions>
Microsoft.AspNetCore.DataProtection (1)
Internal\KeyManagementOptionsPostSetup.cs (1)
23internal sealed class KeyManagementOptionsPostSetup : IPostConfigureOptions<KeyManagementOptions>
Microsoft.AspNetCore.Identity (2)
IdentityBuilderExtensions.cs (1)
107private sealed class PostConfigureSecurityStampValidatorOptions : IPostConfigureOptions<SecurityStampValidatorOptions>
IdentityServiceCollectionExtensions.cs (1)
172private sealed class PostConfigureSecurityStampValidatorOptions : IPostConfigureOptions<SecurityStampValidatorOptions>
Microsoft.AspNetCore.Identity.UI (1)
IdentityDefaultUIConfigureOptions.cs (1)
14IPostConfigureOptions<RazorPagesOptions>,
Microsoft.AspNetCore.Mvc.Core (2)
Infrastructure\ConfigureCompatibilityOptions.cs (1)
18public abstract class ConfigureCompatibilityOptions<TOptions> : IPostConfigureOptions<TOptions>
Infrastructure\MvcCoreMvcOptionsSetup.cs (1)
23internal sealed class MvcCoreMvcOptionsSetup : IConfigureOptions<MvcOptions>, IPostConfigureOptions<MvcOptions>
Microsoft.Authentication.WebAssembly.Msal (1)
MsalDefaultOptionsConfiguration.cs (1)
11internal sealed class MsalDefaultOptionsConfiguration : IPostConfigureOptions<RemoteAuthenticationOptions<MsalProviderOptions>>
Microsoft.Extensions.ML (1)
MLOptions.cs (1)
41internal class PostMLContextOptionsConfiguration : IPostConfigureOptions<MLOptions>
Microsoft.Extensions.Options (6)
PostConfigureOptions.cs (6)
12public class PostConfigureOptions<TOptions> : IPostConfigureOptions<TOptions> where TOptions : class 57public class PostConfigureOptions<TOptions, TDep> : IPostConfigureOptions<TOptions> 118public class PostConfigureOptions<TOptions, TDep1, TDep2> : IPostConfigureOptions<TOptions> 188public class PostConfigureOptions<TOptions, TDep1, TDep2, TDep3> : IPostConfigureOptions<TOptions> 267public class PostConfigureOptions<TOptions, TDep1, TDep2, TDep3, TDep4> : IPostConfigureOptions<TOptions> 355public class PostConfigureOptions<TOptions, TDep1, TDep2, TDep3, TDep4, TDep5> : IPostConfigureOptions<TOptions>
67 references to IPostConfigureOptions
Aspire.Dashboard (1)
DashboardWebApplication.cs (1)
162builder.Services.AddSingleton<IPostConfigureOptions<DashboardOptions>, PostConfigureDashboardOptions>();
Aspire.StackExchange.Redis (1)
AspireRedisExtensions.cs (1)
202public ConfigurationOptionsFactory(IServiceProvider serviceProvider, IEnumerable<IConfigureOptions<ConfigurationOptions>> setups, IEnumerable<IPostConfigureOptions<ConfigurationOptions>> postConfigures, IEnumerable<IValidateOptions<ConfigurationOptions>> validations)
Microsoft.AspNetCore.Authentication (2)
AuthenticationBuilder.cs (2)
52Services.TryAddEnumerable(ServiceDescriptor.Singleton<IPostConfigureOptions<TOptions>, PostConfigureAuthenticationSchemeOptions<TOptions>>()); 97Services.TryAddEnumerable(ServiceDescriptor.Singleton<IPostConfigureOptions<TOptions>, EnsureSignInScheme<TOptions>>());
Microsoft.AspNetCore.Authentication.Cookies (1)
CookieExtensions.cs (1)
79builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IPostConfigureOptions<CookieAuthenticationOptions>, PostConfigureCookieAuthenticationOptions>());
Microsoft.AspNetCore.Authentication.JwtBearer (1)
JwtBearerExtensions.cs (1)
78builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IPostConfigureOptions<JwtBearerOptions>, JwtBearerPostConfigureOptions>());
Microsoft.AspNetCore.Authentication.Negotiate (1)
NegotiateExtensions.cs (1)
71builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IPostConfigureOptions<NegotiateOptions>, PostConfigureNegotiateOptions>());
Microsoft.AspNetCore.Authentication.OAuth (1)
OAuthExtensions.cs (1)
62builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IPostConfigureOptions<TOptions>, OAuthPostConfigureOptions<TOptions, THandler>>());
Microsoft.AspNetCore.Authentication.OpenIdConnect (1)
OpenIdConnectExtensions.cs (1)
72builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IPostConfigureOptions<OpenIdConnectOptions>, OpenIdConnectPostConfigureOptions>());
Microsoft.AspNetCore.Authentication.Twitter (1)
TwitterExtensions.cs (1)
69builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IPostConfigureOptions<TwitterOptions>, TwitterPostConfigureOptions>());
Microsoft.AspNetCore.Authentication.WsFederation (1)
WsFederationExtensions.cs (1)
53builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IPostConfigureOptions<WsFederationOptions>, WsFederationPostConfigureOptions>());
Microsoft.AspNetCore.Components.Endpoints (2)
DependencyInjection\DefaultRazorComponentsServiceOptionsConfiguration.cs (1)
18: IPostConfigureOptions<RazorComponentsServiceOptions>
DependencyInjection\RazorComponentsServiceCollectionExtensions.cs (1)
68ServiceDescriptor.Singleton<IPostConfigureOptions<RazorComponentsServiceOptions>, DefaultRazorComponentsServiceOptionsConfiguration>());
Microsoft.AspNetCore.DataProtection (2)
DataProtectionServiceCollectionExtensions.cs (1)
71ServiceDescriptor.Singleton<IPostConfigureOptions<KeyManagementOptions>, KeyManagementOptionsPostSetup>());
Internal\KeyManagementOptionsPostSetup.cs (1)
54void IPostConfigureOptions<KeyManagementOptions>.PostConfigure(string? name, KeyManagementOptions options)
Microsoft.AspNetCore.DataProtection.Tests (7)
Internal\KeyManagementOptionsPostSetupTest.cs (7)
27IPostConfigureOptions<KeyManagementOptions> setup = new KeyManagementOptionsPostSetup(config, NullLoggerFactory.Instance); 44IPostConfigureOptions<KeyManagementOptions> setup = new KeyManagementOptionsPostSetup(config, NullLoggerFactory.Instance); 63IPostConfigureOptions<KeyManagementOptions> setup = new KeyManagementOptionsPostSetup(config, NullLoggerFactory.Instance); 82IPostConfigureOptions<KeyManagementOptions> setup = new KeyManagementOptionsPostSetup(config, NullLoggerFactory.Instance); 112IPostConfigureOptions<KeyManagementOptions> setup = new KeyManagementOptionsPostSetup(config, NullLoggerFactory.Instance); 131IPostConfigureOptions<KeyManagementOptions> setup = new KeyManagementOptionsPostSetup(config, NullLoggerFactory.Instance); 145IPostConfigureOptions<KeyManagementOptions> setup = new KeyManagementOptionsPostSetup();
Microsoft.AspNetCore.Identity (2)
IdentityBuilderExtensions.cs (1)
46builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IPostConfigureOptions<SecurityStampValidatorOptions>, PostConfigureSecurityStampValidatorOptions>());
IdentityServiceCollectionExtensions.cs (1)
101services.TryAddEnumerable(ServiceDescriptor.Singleton<IPostConfigureOptions<SecurityStampValidatorOptions>, PostConfigureSecurityStampValidatorOptions>());
Microsoft.AspNetCore.Mvc.Core (1)
DependencyInjection\MvcCoreServiceCollectionExtensions.cs (1)
137ServiceDescriptor.Transient<IPostConfigureOptions<MvcOptions>, MvcCoreMvcOptionsSetup>());
Microsoft.AspNetCore.Mvc.Core.Test (1)
DependencyInjection\MvcCoreServiceCollectionExtensionsTest.cs (1)
242typeof(IPostConfigureOptions<MvcOptions>),
Microsoft.AspNetCore.Mvc.Test (1)
MvcServiceCollectionExtensionsTest.cs (1)
519typeof(IPostConfigureOptions<MvcOptions>),
Microsoft.Authentication.WebAssembly.Msal (1)
MsalWebAssemblyServiceCollectionExtensions.cs (1)
61services.TryAddEnumerable(ServiceDescriptor.Scoped<IPostConfigureOptions<RemoteAuthenticationOptions<MsalProviderOptions>>, MsalDefaultOptionsConfiguration>());
Microsoft.Extensions.Logging.Console (1)
ConsoleLoggerExtensions.Obsolete.cs (1)
157OptionsFactory<ConsoleLoggerOptions> factory = new(new IConfigureOptions<ConsoleLoggerOptions>[] { adapter }, Array.Empty<IPostConfigureOptions<ConsoleLoggerOptions>>());
Microsoft.Extensions.ML (1)
ServiceCollectionExtensions.cs (1)
83.TryAddEnumerable(ServiceDescriptor.Singleton<IPostConfigureOptions<MLOptions>, PostMLContextOptionsConfiguration>());
Microsoft.Extensions.Options (24)
IConfigureOptions.cs (1)
11/// These are run before all <see cref="IPostConfigureOptions{TOptions}"/>.
OptionsBuilder.cs (6)
201Services.AddSingleton<IPostConfigureOptions<TOptions>>(new PostConfigureOptions<TOptions>(Name, configureOptions)); 219Services.AddTransient<IPostConfigureOptions<TOptions>>(sp => 240Services.AddTransient<IPostConfigureOptions<TOptions>>(sp => 263Services.AddTransient<IPostConfigureOptions<TOptions>>( 293Services.AddTransient<IPostConfigureOptions<TOptions>>( 326Services.AddTransient<IPostConfigureOptions<TOptions>>(
OptionsFactory.cs (6)
19private readonly IPostConfigureOptions<TOptions>[] _postConfigures; 27public OptionsFactory(IEnumerable<IConfigureOptions<TOptions>> setups, IEnumerable<IPostConfigureOptions<TOptions>> postConfigures) : this(setups, postConfigures, validations: Array.Empty<IValidateOptions<TOptions>>()) 36public OptionsFactory(IEnumerable<IConfigureOptions<TOptions>> setups, IEnumerable<IPostConfigureOptions<TOptions>> postConfigures, IEnumerable<IValidateOptions<TOptions>> validations) 44_postConfigures = postConfigures as IPostConfigureOptions<TOptions>[] ?? new List<IPostConfigureOptions<TOptions>>(postConfigures).ToArray(); 69foreach (IPostConfigureOptions<TOptions> post in _postConfigures)
OptionsServiceCollectionExtensions.cs (5)
143services.AddSingleton<IPostConfigureOptions<TOptions>>(new PostConfigureOptions<TOptions>(name, configureOptions)); 160/// <see cref="IPostConfigureOptions{TOptions}"/>, and <see cref="IValidateOptions{TOptions}"/> 179gtd == typeof(IPostConfigureOptions<>) || 206/// <see cref="IPostConfigureOptions{TOptions}"/>, and <see cref="IValidateOptions{TOptions}"/> 235/// <see cref="IPostConfigureOptions{TOptions}"/>, and <see cref="IValidateOptions{TOptions}"/>
PostConfigureOptions.cs (6)
9/// Implementation of <see cref="IPostConfigureOptions{TOptions}"/>. 53/// Implementation of <see cref="IPostConfigureOptions{TOptions}"/>. 113/// Implementation of <see cref="IPostConfigureOptions{TOptions}"/>. 182/// Implementation of <see cref="IPostConfigureOptions{TOptions}"/>. 260/// Implementation of <see cref="IPostConfigureOptions{TOptions}"/>. 347/// Implementation of <see cref="IPostConfigureOptions{TOptions}"/>.
Microsoft.Extensions.Options.Contextual (4)
Internal\ContextualOptionsFactory.cs (4)
27private readonly IPostConfigureOptions<TOptions>[] _postConfigures; 40IEnumerable<IPostConfigureOptions<TOptions>> postConfigures, 45_postConfigures = postConfigures as IPostConfigureOptions<TOptions>[] ?? postConfigures.ToArray(); 127foreach (IPostConfigureOptions<TOptions> post in _postConfigures)
Microsoft.Extensions.Options.Contextual.Tests (9)
ContextualOptionsFactoryTests.cs (9)
26Enumerable.Empty<IPostConfigureOptions<List<string>>>(), 40Enumerable.Empty<IPostConfigureOptions<List<string>>>(), 53Enumerable.Empty<IPostConfigureOptions<List<string>>>(), 94Enumerable.Empty<IPostConfigureOptions<List<string>>>(), 114Enumerable.Empty<IPostConfigureOptions<List<string>>>(), 153Enumerable.Empty<IPostConfigureOptions<List<string>>>(), 197Enumerable.Empty<IPostConfigureOptions<List<string>>>(), 219Enumerable.Empty<IPostConfigureOptions<List<string>>>(), 244Enumerable.Empty<IPostConfigureOptions<List<string>>>(),