1 write to Services
Microsoft.Extensions.Options (1)
OptionsBuilder.cs (1)
36Services = services;
34 references to Services
Microsoft.Extensions.Compliance.Redaction (2)
RedactionExtensions.cs (1)
55.Services.Configure<HmacRedactorOptions>(section);
RedactionServiceCollectionExtensions.cs (1)
40.Services
Microsoft.Extensions.Compliance.Testing (8)
FakeRedactionBuilderExtensions.cs (4)
52.Services.AddOptionsWithValidateOnStart<FakeRedactorOptions, FakeRedactorOptionsCustomValidator>() 54.Services.TryAddSingleton<FakeRedactionCollector>(); 74.Services.AddOptionsWithValidateOnStart<FakeRedactorOptions, FakeRedactorOptionsCustomValidator>() 75.Services.Configure<FakeRedactorOptions>(section)
FakeRedactionServiceCollectionExtensions.cs (4)
38.Services.AddOptionsWithValidateOnStart<FakeRedactorOptions, FakeRedactorOptionsCustomValidator>() 39.Services; 65.Services.AddOptionsWithValidateOnStart<FakeRedactorOptions, FakeRedactorOptionsCustomValidator>() 67.Services;
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
ResourceMonitoringBuilderExtensions.cs (1)
57.Services.AddOptionsWithValidateOnStart<ResourceMonitoringOptions, ResourceMonitoringOptionsCustomValidator>();
Microsoft.Extensions.Options (20)
OptionsBuilder.cs (18)
52Services.AddSingleton<IConfigureOptions<TOptions>>(new ConfigureNamedOptions<TOptions>(Name, configureOptions)); 70Services.AddTransient<IConfigureOptions<TOptions>>(sp => 91Services.AddTransient<IConfigureOptions<TOptions>>(sp => 114Services.AddTransient<IConfigureOptions<TOptions>>( 144Services.AddTransient<IConfigureOptions<TOptions>>( 177Services.AddTransient<IConfigureOptions<TOptions>>( 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>>( 356Services.AddSingleton<IValidateOptions<TOptions>>(new ValidateOptions<TOptions>(Name, validation, failureMessage)); 380Services.AddTransient<IValidateOptions<TOptions>>(sp => 411Services.AddTransient<IValidateOptions<TOptions>>(sp => 450Services.AddTransient<IValidateOptions<TOptions>>(sp => 494Services.AddTransient<IValidateOptions<TOptions>>(sp => 543Services.AddTransient<IValidateOptions<TOptions>>(sp =>
OptionsBuilderExtensions.cs (2)
29optionsBuilder.Services.TryAddTransient<IStartupValidator, StartupValidator>(); 30optionsBuilder.Services.AddOptions<StartupValidatorOptions>()
Microsoft.Extensions.Options.ConfigurationExtensions (2)
OptionsBuilderConfigurationExtensions.cs (2)
45optionsBuilder.Services.Configure<TOptions>(optionsBuilder.Name, config, configureBinder); 81optionsBuilder.Services.AddSingleton<IOptionsChangeTokenSource<TOptions>, ConfigurationChangeTokenSource<TOptions>>(sp =>
Microsoft.Extensions.Options.DataAnnotations (1)
OptionsBuilderDataAnnotationsExtensions.cs (1)
24optionsBuilder.Services.AddSingleton<IValidateOptions<TOptions>>(new DataAnnotationValidateOptions<TOptions>(optionsBuilder.Name));