1 write to Name
Microsoft.Extensions.Options (1)
OptionsBuilder.cs (1)
37
Name
= name ?? Options.DefaultName;
23 references to Name
Microsoft.Extensions.Options (20)
OptionsBuilder.cs (18)
52
Services.AddSingleton<IConfigureOptions<TOptions>>(new ConfigureNamedOptions<TOptions>(
Name
, configureOptions));
71
new ConfigureNamedOptions<TOptions, TDep>(
Name
, sp.GetRequiredService<TDep>(), configureOptions));
92
new ConfigureNamedOptions<TOptions, TDep1, TDep2>(
Name
, sp.GetRequiredService<TDep1>(), sp.GetRequiredService<TDep2>(), configureOptions));
116
Name
,
146
Name
,
179
Name
,
201
Services.AddSingleton<IPostConfigureOptions<TOptions>>(new PostConfigureOptions<TOptions>(
Name
, configureOptions));
220
new PostConfigureOptions<TOptions, TDep>(
Name
, sp.GetRequiredService<TDep>(), configureOptions));
241
new PostConfigureOptions<TOptions, TDep1, TDep2>(
Name
, sp.GetRequiredService<TDep1>(), sp.GetRequiredService<TDep2>(), configureOptions));
265
Name
,
295
Name
,
328
Name
,
356
Services.AddSingleton<IValidateOptions<TOptions>>(new ValidateOptions<TOptions>(
Name
, validation, failureMessage));
381
new ValidateOptions<TOptions, TDep>(
Name
, sp.GetRequiredService<TDep>(), validation, failureMessage));
412
new ValidateOptions<TOptions, TDep1, TDep2>(
Name
,
451
new ValidateOptions<TOptions, TDep1, TDep2, TDep3>(
Name
,
495
new ValidateOptions<TOptions, TDep1, TDep2, TDep3, TDep4>(
Name
,
544
new ValidateOptions<TOptions, TDep1, TDep2, TDep3, TDep4, TDep5>(
Name
,
OptionsBuilderExtensions.cs (2)
35
vo._validators[(typeof(TOptions), optionsBuilder.
Name
)] = () => options.Get(optionsBuilder.
Name
);
Microsoft.Extensions.Options.ConfigurationExtensions (2)
OptionsBuilderConfigurationExtensions.cs (2)
45
optionsBuilder.Services.Configure<TOptions>(optionsBuilder.
Name
, config, configureBinder);
83
return new ConfigurationChangeTokenSource<TOptions>(optionsBuilder.
Name
, sp.GetRequiredService<IConfiguration>());
Microsoft.Extensions.Options.DataAnnotations (1)
OptionsBuilderDataAnnotationsExtensions.cs (1)
24
optionsBuilder.Services.AddSingleton<IValidateOptions<TOptions>>(new DataAnnotationValidateOptions<TOptions>(optionsBuilder.
Name
));