10 references to ValidateOnStart
Aspire.Dashboard (1)
DashboardWebApplication.cs (1)
161.ValidateOnStart();
Aspire.Hosting (2)
Dashboard\DashboardServiceHost.cs (1)
81.ValidateOnStart();
DistributedApplicationBuilder.cs (1)
269_innerBuilder.Services.AddOptions<TransportOptions>().ValidateOnStart().PostConfigure(MapTransportOptionsFromCustomKeys);
Aspire.Hosting.Azure (1)
Provisioning\AzureProvisionerExtensions.cs (1)
31.ValidateOnStart();
Microsoft.Extensions.Diagnostics (1)
Metrics\MetricsServiceExtensions.cs (1)
36services.AddOptions<NoOpOptions>().ValidateOnStart();
Microsoft.Extensions.Options (5)
IStartupValidator.cs (1)
10/// Options are enabled to be validated during startup by calling <see cref="DependencyInjection.OptionsBuilderExtensions.ValidateOnStart{TOptions}(OptionsBuilder{TOptions})"/>.
OptionsServiceCollectionExtensions.cs (4)
38/// The <see cref="OptionsBuilderExtensions.ValidateOnStart{TOptions}(OptionsBuilder{TOptions})"/> extension is called by this method. 50return new OptionsBuilder<TOptions>(services, name ?? Options.Options.DefaultName).ValidateOnStart(); 57/// The <see cref="OptionsBuilderExtensions.ValidateOnStart{TOptions}(OptionsBuilder{TOptions})"/> extension is called by this method. 73return new OptionsBuilder<TOptions>(services, name ?? Options.Options.DefaultName).ValidateOnStart();