18 references to Fail
Aspire.Hosting (9)
Dashboard\TransportOptionsValidator.cs (9)
25
return ValidateOptionsResult.
Fail
($"AppHost does not have applicationUrl in launch profile, or {KnownConfigNames.AspNetCoreUrls} environment variable set.");
32
return ValidateOptionsResult.
Fail
($"The 'applicationUrl' setting of the launch profile has value '{firstApplicationUrl}' which could not be parsed as a URI.");
37
return 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.");
45
return ValidateOptionsResult.
Fail
($"AppHost does not have the {KnownConfigNames.DashboardOtlpGrpcEndpointUrl} or {KnownConfigNames.DashboardOtlpHttpEndpointUrl} settings defined. At least one OTLP endpoint must be provided.");
61
return ValidateOptionsResult.
Fail
($"AppHost does not have the {KnownConfigNames.ResourceServiceEndpointUrl} setting defined.");
66
return ValidateOptionsResult.
Fail
($"The {KnownConfigNames.ResourceServiceEndpointUrl} setting with a value of '{resourceServiceEndpointUrl}' could not be parsed as a URI.");
71
return 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.");
82
result = ValidateOptionsResult.
Fail
($"The {configName} setting with a value of '{value}' could not be parsed as a URI.");
88
result = 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)
59
return ValidateOptionsResult.
Fail
(FailureMessage);
126
return ValidateOptionsResult.
Fail
(FailureMessage);
201
return ValidateOptionsResult.
Fail
(FailureMessage);
284
return ValidateOptionsResult.
Fail
(FailureMessage);
375
return ValidateOptionsResult.
Fail
(FailureMessage);
474
return ValidateOptionsResult.
Fail
(FailureMessage);
Microsoft.Extensions.ServiceDiscovery (3)
Configuration\ConfigurationServiceEndpointProviderOptionsValidator.cs (2)
14
return ValidateOptionsResult.
Fail
($"{nameof(options.SectionName)} must not be null or empty.");
19
return ValidateOptionsResult.
Fail
($"{nameof(options.ShouldApplyHostNameMetadata)} must not be null.");
Internal\ServiceDiscoveryOptionsValidator.cs (1)
14
return ValidateOptionsResult.
Fail
("At least one allowed scheme must be specified.");