26 references to AddError
Aspire.Hosting (8)
Dcp\DcpOptions.cs (8)
187
builder.
AddError
("The path to the DCP executable used for Aspire orchestration is required.", "CliPath");
192
builder.
AddError
("The path to the Aspire Dashboard binaries is missing.", "DashboardPath");
197
builder.
AddError
($"The proxyless endpoint port range start must be between {PortRange.MinPort} and {PortRange.MaxPort}.", nameof(options.ProxylessEndpointPortRangeStart));
202
builder.
AddError
($"The proxyless endpoint port range end must be between {PortRange.MinPort} and {PortRange.MaxPort}.", nameof(options.ProxylessEndpointPortRangeEnd));
207
builder.
AddError
("The proxyless endpoint port range start must be less than or equal to the range end.", nameof(options.ProxylessEndpointPortRangeStart));
215
builder.
AddError
("The Kubernetes additional initialization timeout must be non-negative.", nameof(options.KubernetesInitializationAdditionalTimeout));
221
builder.
AddError
("The combined Kubernetes API and additional initialization timeouts must not exceed ten minutes.", nameof(options.KubernetesInitializationAdditionalTimeout));
231
builder.
AddError
($"The Kubernetes {description} timeout must be between one second and ten minutes.", propertyName);
Microsoft.AspNetCore.Diagnostics.Middleware (1)
Buffering\PerRequestLogBufferingOptionsCustomValidator.cs (1)
32
resultBuilder.
AddError
("Only one wildcard character is allowed in category name.", nameof(options.Rules));
Microsoft.AspNetCore.HeaderParsing (1)
HeaderParsingOptionsManualValidator.cs (1)
18
builder.
AddError
(
Microsoft.Extensions.Compliance.Testing (1)
FakeRedactorOptionsCustomValidator.cs (1)
24
builder.
AddError
(
Microsoft.Extensions.Diagnostics.Probes (1)
KubernetesProbesOptionsValidator.cs (1)
18
builder.
AddError
("Liveness, startup and readiness probes must use different ports.");
Microsoft.Extensions.Diagnostics.ResourceMonitoring (2)
ResourceMonitoringOptionsCustomValidator.cs (2)
18
builder.
AddError
(
28
builder.
AddError
(nameof(options.SourceIpAddresses), "must contain IPv4 or IPv6 addresses only");
Microsoft.Extensions.Http.Resilience (5)
Hedging\Internals\Validators\HttpStandardHedgingResilienceOptionsCustomValidator.cs (3)
19
builder.
AddError
($"Total request timeout strategy must have a greater timeout than the attempt timeout strategy. " +
27
builder.
AddError
("The sampling duration of circuit breaker strategy needs to be at least double of " +
41
builder.
AddError
($"The cumulative delay of the hedging strategy is larger than total request timeout interval. " +
Resilience\Internal\Validators\HttpStandardResilienceOptionsCustomValidator.cs (2)
19
builder.
AddError
($"Total request timeout resilience strategy must have a greater timeout than the attempt resilience strategy. " +
26
builder.
AddError
("The sampling duration of circuit breaker strategy needs to be at least double of " +
Microsoft.Extensions.Telemetry (7)
Buffering\GlobalLogBufferingOptionsCustomValidator.cs (1)
31
resultBuilder.
AddError
("Only one wildcard character is allowed in category name.", nameof(options.Rules));
Sampling\BottomKLogSamplingOptionsCustomValidator.cs (6)
22
result.
AddError
("FlushInterval must be greater than zero.", nameof(options.FlushInterval));
27
result.
AddError
("UnseenWeightMode must be a defined value.", nameof(options.UnseenWeightMode));
48
result.
AddError
("Rules cannot contain null values.", nameof(BottomKLogSamplingOptions.Rules));
54
result.
AddError
("Rule LogLevel must be a defined value.", nameof(BottomKLogSamplingOptions.Rules));
65
result.
AddError
("Rule category names cannot be empty.", nameof(BottomKLogSamplingOptions.Rules));
72
result.
AddError
(