2 writes to Failed
Microsoft.Extensions.Options (2)
ValidateOptionsResult.cs (2)
64=> new ValidateOptionsResult { Failed = true, FailureMessage = failureMessage, Failures = new string[] { failureMessage } }; 72=> new ValidateOptionsResult { Failed = true, FailureMessage = string.Join("; ", failures), Failures = failures };
38 references to Failed
Aspire.Dashboard (1)
DashboardWebApplication.cs (1)
488if (result.Failed)
Aspire.Hosting.Tests (10)
Dashboard\TransportOptionsValidatorTests.cs (10)
25Assert.True(result.Failed); 98Assert.True(result.Failed); 117Assert.True(result.Failed); 137Assert.True(result.Failed); 159Assert.True(result.Failed); 181Assert.True(result.Failed); 204Assert.True(result.Failed); 229Assert.True(result.Failed); 253Assert.True(result.Failed); 275Assert.True(result.Failed);
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (1)
Latency\RequestLatencyTelemetryOptionsValidatorTests.cs (1)
17Assert.True(validator.Validate(nameof(RequestLatencyTelemetryOptions), options).Failed);
Microsoft.Extensions.AmbientMetadata.Application.Tests (2)
ApplicationMetadataValidatorTests.cs (2)
36validator.Validate("model", applicationMetadata).Failed.Should().BeTrue(); 45validator.Validate("model", applicationMetadata).Failed.Should().BeTrue();
Microsoft.Extensions.Compliance.Testing (1)
FakeRedactor.cs (1)
51if (r.Failed)
Microsoft.Extensions.Compliance.Testing.Tests (2)
FakeRedactorOptionsValidatorTests.cs (2)
21Assert.True(validationResult.Failed, "Validator passed when it should fail."); 42Assert.True(validationResult.Failed, validationResult.FailureMessage);
Microsoft.Extensions.Diagnostics.Probes.Tests (4)
KubernetesProbesOptionsValidatorTests.cs (4)
47Assert.True(result.Failed); 53Assert.True(result.Failed); 59Assert.True(result.Failed); 65Assert.True(result.Failed);
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (6)
ResourceMonitoringOptionsCustomValidatorTests.cs (2)
27Assert.True(result.Failed); 71Assert.True(validationResult.Failed);
ResourceMonitoringOptionsValidatorTests.cs (4)
41Assert.True(validator.Validate(nameof(options), options).Failed); 56Assert.True(validator.Validate(nameof(options), options).Failed); 71Assert.True(validator.Validate(nameof(options), options).Failed); 116Assert.Equal(isError, validator.Validate(nameof(options), options).Failed);
Microsoft.Extensions.Http.Diagnostics.Tests (2)
Logging\LoggingOptionsValidatorTest.cs (2)
36validator.Validate("model", options).Failed.Should().BeTrue(); 45validator.Validate("model", options).Failed.Should().BeTrue();
Microsoft.Extensions.Http.Resilience.Tests (6)
Hedging\HttpStandardHedgingResilienceOptionsCustomValidatorTests.cs (3)
24Assert.True(validationResult.Failed); 74Assert.False(validationResult.Failed); 103Assert.True(validationResult.Failed);
Resilience\HttpStandardResilienceOptionsCustomValidatorTests.cs (3)
30Assert.True(validationResult.Failed); 75Assert.False(validationResult.Failed); 104Assert.True(validationResult.Failed);
Microsoft.Extensions.Options (2)
OptionsFactory.cs (1)
80if (result is not null && result.Failed)
ValidateOptionsResultBuilder.cs (1)
76if (result.Failed)
Microsoft.Extensions.Options.Contextual (1)
Internal\ContextualOptionsFactory.cs (1)
138if (result is not null && result.Failed)