1 write to Services
Microsoft.Extensions.Options (1)
OptionsBuilder.cs (1)
36
Services
= 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)
52
Services
.AddSingleton<IConfigureOptions<TOptions>>(new ConfigureNamedOptions<TOptions>(Name, configureOptions));
70
Services
.AddTransient<IConfigureOptions<TOptions>>(sp =>
91
Services
.AddTransient<IConfigureOptions<TOptions>>(sp =>
114
Services
.AddTransient<IConfigureOptions<TOptions>>(
144
Services
.AddTransient<IConfigureOptions<TOptions>>(
177
Services
.AddTransient<IConfigureOptions<TOptions>>(
201
Services
.AddSingleton<IPostConfigureOptions<TOptions>>(new PostConfigureOptions<TOptions>(Name, configureOptions));
219
Services
.AddTransient<IPostConfigureOptions<TOptions>>(sp =>
240
Services
.AddTransient<IPostConfigureOptions<TOptions>>(sp =>
263
Services
.AddTransient<IPostConfigureOptions<TOptions>>(
293
Services
.AddTransient<IPostConfigureOptions<TOptions>>(
326
Services
.AddTransient<IPostConfigureOptions<TOptions>>(
356
Services
.AddSingleton<IValidateOptions<TOptions>>(new ValidateOptions<TOptions>(Name, validation, failureMessage));
380
Services
.AddTransient<IValidateOptions<TOptions>>(sp =>
411
Services
.AddTransient<IValidateOptions<TOptions>>(sp =>
450
Services
.AddTransient<IValidateOptions<TOptions>>(sp =>
494
Services
.AddTransient<IValidateOptions<TOptions>>(sp =>
543
Services
.AddTransient<IValidateOptions<TOptions>>(sp =>
OptionsBuilderExtensions.cs (2)
29
optionsBuilder.
Services
.TryAddTransient<IStartupValidator, StartupValidator>();
30
optionsBuilder.
Services
.AddOptions<StartupValidatorOptions>()
Microsoft.Extensions.Options.ConfigurationExtensions (2)
OptionsBuilderConfigurationExtensions.cs (2)
45
optionsBuilder.
Services
.Configure<TOptions>(optionsBuilder.Name, config, configureBinder);
81
optionsBuilder.
Services
.AddSingleton<IOptionsChangeTokenSource<TOptions>, ConfigurationChangeTokenSource<TOptions>>(sp =>
Microsoft.Extensions.Options.DataAnnotations (1)
OptionsBuilderDataAnnotationsExtensions.cs (1)
24
optionsBuilder.
Services
.AddSingleton<IValidateOptions<TOptions>>(new DataAnnotationValidateOptions<TOptions>(optionsBuilder.Name));