18 references to Fail
Aspire.Hosting (9)
Dashboard\TransportOptionsValidator.cs (9)
26
return ValidateOptionsResult.
Fail
($"AppHost does not have applicationUrl in launch profile, or {KnownConfigNames.AspNetCoreUrls} environment variable set.");
33
return ValidateOptionsResult.
Fail
($"The 'applicationUrl' setting of the launch profile has value '{firstApplicationUrl}' which could not be parsed as a URI.");
38
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.");
46
return ValidateOptionsResult.
Fail
($"AppHost does not have the {KnownConfigNames.DashboardOtlpGrpcEndpointUrl} or {KnownConfigNames.DashboardOtlpHttpEndpointUrl} settings defined. At least one OTLP endpoint must be provided.");
62
return ValidateOptionsResult.
Fail
($"AppHost does not have the {KnownConfigNames.ResourceServiceEndpointUrl} setting defined.");
67
return ValidateOptionsResult.
Fail
($"The {KnownConfigNames.ResourceServiceEndpointUrl} setting with a value of '{resourceServiceEndpointUrl}' could not be parsed as a URI.");
72
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.");
97
result = ValidateOptionsResult.
Fail
($"The {configName} setting with a value of '{value}' could not be parsed as a URI.");
103
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.");