35 references to AddOptionsWithValidateOnStart
Microsoft.AspNetCore.Diagnostics.Middleware (3)
Latency\RequestLatencyTelemetryServiceCollectionExtensions.cs (1)
42_ = services.AddOptionsWithValidateOnStart<RequestLatencyTelemetryOptions, RequestLatencyTelemetryOptionsValidator>();
Logging\HttpLoggingServiceCollectionExtensions.cs (1)
38_ = services.AddOptionsWithValidateOnStart<LoggingRedactionOptions, LoggingRedactionOptionsValidator>()
Logging\RequestHeadersEnricherServiceCollectionExtensions.cs (1)
24_ = services.AddOptionsWithValidateOnStart<RequestHeadersLogEnricherOptions, RequestHeadersLogEnricherOptionsValidator>();
Microsoft.AspNetCore.HeaderParsing (4)
HeaderParsingServiceCollectionExtensions.cs (4)
51_ = services.AddOptionsWithValidateOnStart<HeaderParsingOptions, HeaderParsingOptionsValidator>(); 52_ = services.AddOptionsWithValidateOnStart<HeaderParsingOptions, HeaderParsingOptionsManualValidator>(); 70.AddOptionsWithValidateOnStart<HeaderParsingOptions, HeaderParsingOptionsValidator>() 74.AddOptionsWithValidateOnStart<HeaderParsingOptions, HeaderParsingOptionsManualValidator>()
Microsoft.Extensions.AmbientMetadata.Application (2)
ApplicationMetadataServiceCollectionExtensions.cs (2)
28_ = services.AddOptionsWithValidateOnStart<ApplicationMetadata, ApplicationMetadataValidator>().Bind(section); 45_ = services.AddOptionsWithValidateOnStart<ApplicationMetadata, ApplicationMetadataValidator>().Configure(configure);
Microsoft.Extensions.Compliance.Redaction (2)
RedactionExtensions.cs (2)
33.AddOptionsWithValidateOnStart<HmacRedactorOptions, HmacRedactorOptionsValidator>() 54.Services.AddOptionsWithValidateOnStart<HmacRedactorOptions, HmacRedactorOptionsValidator>()
Microsoft.Extensions.Compliance.Testing (8)
FakeRedactionBuilderExtensions.cs (4)
51.Services.AddOptionsWithValidateOnStart<FakeRedactorOptions, FakeRedactorOptionsAutoValidator>() 52.Services.AddOptionsWithValidateOnStart<FakeRedactorOptions, FakeRedactorOptionsCustomValidator>() 73.Services.AddOptionsWithValidateOnStart<FakeRedactorOptions, FakeRedactorOptionsAutoValidator>() 74.Services.AddOptionsWithValidateOnStart<FakeRedactorOptions, FakeRedactorOptionsCustomValidator>()
FakeRedactionServiceCollectionExtensions.cs (4)
37.AddOptionsWithValidateOnStart<FakeRedactorOptions, FakeRedactorOptionsAutoValidator>() 38.Services.AddOptionsWithValidateOnStart<FakeRedactorOptions, FakeRedactorOptionsCustomValidator>() 64.AddOptionsWithValidateOnStart<FakeRedactorOptions, FakeRedactorOptionsAutoValidator>() 65.Services.AddOptionsWithValidateOnStart<FakeRedactorOptions, FakeRedactorOptionsCustomValidator>()
Microsoft.Extensions.Diagnostics.Probes (2)
KubernetesProbesExtensions.cs (1)
51.AddOptionsWithValidateOnStart<KubernetesProbesOptions, KubernetesProbesOptionsValidator>()
TcpEndpointProbesExtensions.cs (1)
47.AddOptionsWithValidateOnStart<TcpEndpointProbesOptions, TcpEndpointProbesOptionsValidator>(name);
Microsoft.Extensions.Diagnostics.ResourceMonitoring (2)
ResourceMonitoringBuilderExtensions.cs (2)
56.Services.AddOptionsWithValidateOnStart<ResourceMonitoringOptions, ResourceMonitoringOptionsValidator>() 57.Services.AddOptionsWithValidateOnStart<ResourceMonitoringOptions, ResourceMonitoringOptionsCustomValidator>();
Microsoft.Extensions.Http.Diagnostics (3)
Logging\HttpClientLoggingHttpClientBuilderExtensions.cs (1)
83.AddOptionsWithValidateOnStart<LoggingOptions, LoggingOptionsValidator>(builder.Name);
Logging\HttpClientLoggingServiceCollectionExtensions.cs (2)
67.AddOptionsWithValidateOnStart<LoggingOptions, LoggingOptionsValidator>() 89.AddOptionsWithValidateOnStart<LoggingOptions, LoggingOptionsValidator>()
Microsoft.Extensions.Http.Resilience (6)
Hedging\ResilienceHttpClientBuilderExtensions.Hedging.cs (2)
80_ = builder.Services.AddOptionsWithValidateOnStart<HttpStandardHedgingResilienceOptions, HttpStandardHedgingResilienceOptionsValidator>(optionsName); 81_ = builder.Services.AddOptionsWithValidateOnStart<HttpStandardHedgingResilienceOptions, HttpStandardHedgingResilienceOptionsCustomValidator>(optionsName);
Resilience\ResilienceHttpClientBuilderExtensions.StandardResilience.cs (2)
72_ = builder.Services.AddOptionsWithValidateOnStart<HttpStandardResilienceOptions, HttpStandardResilienceOptionsCustomValidator>(optionsName); 73_ = builder.Services.AddOptionsWithValidateOnStart<HttpStandardResilienceOptions, HttpStandardResilienceOptionsValidator>(optionsName);
Routing\RoutingStrategyBuilderExtensions.cs (2)
135return builder.Services.AddOptionsWithValidateOnStart<OrderedGroupsRoutingOptions, OrderedGroupsRoutingOptionsValidator>(builder.Name); 147return builder.Services.AddOptionsWithValidateOnStart<WeightedGroupsRoutingOptions, WeightedGroupsRoutingOptionsValidator>(builder.Name);
Microsoft.Extensions.Telemetry (2)
Logging\LoggingEnrichmentExtensions.cs (2)
39_ = builder.Services.AddOptionsWithValidateOnStart<LoggerEnrichmentOptions, LoggerEnrichmentOptionsValidator>(); 56_ = builder.Services.AddOptionsWithValidateOnStart<LoggerEnrichmentOptions, LoggerEnrichmentOptionsValidator>().Bind(section);
Microsoft.Extensions.Telemetry.Abstractions (1)
Latency\Registration\LatencyRegistryServiceCollectionExtensions.cs (1)
82_ = services.AddOptionsWithValidateOnStart<LatencyContextRegistrationOptions, LatencyContextRegistrationOptionsValidator>();