17 references to ResourceServiceEndpointUrl
Aspire.Hosting (5)
Dashboard\TransportOptionsValidator.cs (4)
58
var resourceServiceEndpointUrl = configuration.GetString(KnownConfigNames.
ResourceServiceEndpointUrl
, KnownConfigNames.Legacy.ResourceServiceEndpointUrl);
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.");
src\Shared\DashboardConfigNames.cs (1)
15
public static readonly ConfigName ResourceServiceUrlName = new(KnownConfigNames.
ResourceServiceEndpointUrl
);
Aspire.Hosting.Tests (12)
Dashboard\DashboardResourceTests.cs (1)
122
Assert.Equal(KnownConfigNames.
ResourceServiceEndpointUrl
, e.Key);
Dashboard\TransportOptionsValidatorTests.cs (11)
145
[InlineData(KnownConfigNames.
ResourceServiceEndpointUrl
)]
163
$"AppHost does not have the {KnownConfigNames.
ResourceServiceEndpointUrl
} setting defined.",
180
config[KnownConfigNames.
ResourceServiceEndpointUrl
] = "https://localhost:1235";
193
[InlineData(KnownConfigNames.
ResourceServiceEndpointUrl
)]
212
$"The {KnownConfigNames.
ResourceServiceEndpointUrl
} setting with a value of '{invalidUrl}' could not be parsed as a URI.",
232
config[KnownConfigNames.
ResourceServiceEndpointUrl
] = "https://localhost:1235";
256
config[KnownConfigNames.
ResourceServiceEndpointUrl
] = "https://localhost:1235";
269
[InlineData(KnownConfigNames.
ResourceServiceEndpointUrl
)]
287
$"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.",
325
[InlineData(KnownConfigNames.DashboardOtlpHttpEndpointUrl, KnownConfigNames.
ResourceServiceEndpointUrl
)]
326
[InlineData(KnownConfigNames.Legacy.DashboardOtlpHttpEndpointUrl, KnownConfigNames.
ResourceServiceEndpointUrl
)]