18 references to Fail
Aspire.Hosting (9)
Dashboard\TransportOptionsValidator.cs (9)
25return ValidateOptionsResult.Fail($"AppHost does not have applicationUrl in launch profile, or {KnownConfigNames.AspNetCoreUrls} environment variable set."); 32return ValidateOptionsResult.Fail($"The 'applicationUrl' setting of the launch profile has value '{firstApplicationUrl}' which could not be parsed as a URI."); 37return ValidateOptionsResult.Fail($"The 'applicationUrl' setting must be an https address unless the '{KnownConfigNames.AllowUnsecuredTransport}' environment variable is set to true. This configuration is commonly set in the launch profile. See https://aka.ms/dotnet/aspire/allowunsecuredtransport for more details."); 45return ValidateOptionsResult.Fail($"AppHost does not have the {KnownConfigNames.DashboardOtlpGrpcEndpointUrl} or {KnownConfigNames.DashboardOtlpHttpEndpointUrl} settings defined. At least one OTLP endpoint must be provided."); 61return ValidateOptionsResult.Fail($"AppHost does not have the {KnownConfigNames.ResourceServiceEndpointUrl} setting defined."); 66return ValidateOptionsResult.Fail($"The {KnownConfigNames.ResourceServiceEndpointUrl} setting with a value of '{resourceServiceEndpointUrl}' could not be parsed as a URI."); 71return ValidateOptionsResult.Fail($"The '{KnownConfigNames.ResourceServiceEndpointUrl}' setting must be an https address unless the '{KnownConfigNames.AllowUnsecuredTransport}' environment variable is set to true. This configuration is commonly set in the launch profile. See https://aka.ms/dotnet/aspire/allowunsecuredtransport for more details."); 82result = ValidateOptionsResult.Fail($"The {configName} setting with a value of '{value}' could not be parsed as a URI."); 88result = ValidateOptionsResult.Fail($"The '{configName}' setting must be an https address unless the '{KnownConfigNames.AllowUnsecuredTransport}' environment variable is set to true. This configuration is commonly set in the launch profile. See https://aka.ms/dotnet/aspire/allowunsecuredtransport for more details.");
Microsoft.Extensions.Options (6)
ValidateOptions.cs (6)
59return ValidateOptionsResult.Fail(FailureMessage); 126return ValidateOptionsResult.Fail(FailureMessage); 201return ValidateOptionsResult.Fail(FailureMessage); 284return ValidateOptionsResult.Fail(FailureMessage); 375return ValidateOptionsResult.Fail(FailureMessage); 474return ValidateOptionsResult.Fail(FailureMessage);
Microsoft.Extensions.ServiceDiscovery (3)
Configuration\ConfigurationServiceEndpointProviderOptionsValidator.cs (2)
14return ValidateOptionsResult.Fail($"{nameof(options.SectionName)} must not be null or empty."); 19return ValidateOptionsResult.Fail($"{nameof(options.ShouldApplyHostNameMetadata)} must not be null.");
Internal\ServiceDiscoveryOptionsValidator.cs (1)
14return ValidateOptionsResult.Fail("At least one allowed scheme must be specified.");