21 references to AddError
Aspire.Hosting (5)
Dcp\DcpOptions.cs (5)
153builder.AddError("The path to the DCP executable used for Aspire orchestration is required.", "CliPath"); 158builder.AddError("The path to the Aspire Dashboard binaries is missing.", "DashboardPath"); 163builder.AddError($"The proxyless endpoint port range start must be between {PortRange.MinPort} and {PortRange.MaxPort}.", nameof(options.ProxylessEndpointPortRangeStart)); 168builder.AddError($"The proxyless endpoint port range end must be between {PortRange.MinPort} and {PortRange.MaxPort}.", nameof(options.ProxylessEndpointPortRangeEnd)); 173builder.AddError("The proxyless endpoint port range start must be less than or equal to the range end.", nameof(options.ProxylessEndpointPortRangeStart));
Microsoft.AspNetCore.Diagnostics.Middleware (1)
Buffering\PerRequestLogBufferingOptionsCustomValidator.cs (1)
28resultBuilder.AddError("Only one wildcard character is allowed in category name.", nameof(options.Rules));
Microsoft.AspNetCore.HeaderParsing (1)
HeaderParsingOptionsManualValidator.cs (1)
18builder.AddError(
Microsoft.Extensions.Compliance.Testing (1)
FakeRedactorOptionsCustomValidator.cs (1)
24builder.AddError(
Microsoft.Extensions.Diagnostics.Probes (1)
KubernetesProbesOptionsValidator.cs (1)
18builder.AddError("Liveness, startup and readiness probes must use different ports.");
Microsoft.Extensions.Diagnostics.ResourceMonitoring (2)
ResourceMonitoringOptionsCustomValidator.cs (2)
18builder.AddError( 28builder.AddError(nameof(options.SourceIpAddresses), "must contain IPv4 or IPv6 addresses only");
Microsoft.Extensions.Http.Resilience (9)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Validators.g.cs (4)
364(builder ??= new()).AddError(string.IsNullOrEmpty(name) ? $"UriEndpointGroup.Endpoints[{count}] is null" : $"{name}.Endpoints[{count}] is null"); 422(builder ??= new()).AddError(string.IsNullOrEmpty(name) ? $"WeightedUriEndpointGroup.Endpoints[{count}] is null" : $"{name}.Endpoints[{count}] is null"); 511(builder ??= new()).AddError(string.IsNullOrEmpty(name) ? $"OrderedGroupsRoutingOptions.Groups[{count}] is null" : $"{name}.Groups[{count}] is null"); 559(builder ??= new()).AddError(string.IsNullOrEmpty(name) ? $"WeightedGroupsRoutingOptions.Groups[{count}] is null" : $"{name}.Groups[{count}] is null");
Hedging\Internals\Validators\HttpStandardHedgingResilienceOptionsCustomValidator.cs (3)
19builder.AddError($"Total request timeout strategy must have a greater timeout than the attempt timeout strategy. " + 27builder.AddError("The sampling duration of circuit breaker strategy needs to be at least double of " + 41builder.AddError($"The cumulative delay of the hedging strategy is larger than total request timeout interval. " +
Resilience\Internal\Validators\HttpStandardResilienceOptionsCustomValidator.cs (2)
19builder.AddError($"Total request timeout resilience strategy must have a greater timeout than the attempt resilience strategy. " + 26builder.AddError("The sampling duration of circuit breaker strategy needs to be at least double of " +
Microsoft.Extensions.Telemetry (1)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Validators.g.cs (1)
73(builder ??= new()).AddError(string.IsNullOrEmpty(name) ? $"RandomProbabilisticSamplerOptions.Rules[{count}] is null" : $"{name}.Rules[{count}] is null");