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