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)
121
Assert.Equal(KnownConfigNames.
ResourceServiceEndpointUrl
, e.Key);
Dashboard\TransportOptionsValidatorTests.cs (11)
144
[InlineData(KnownConfigNames.
ResourceServiceEndpointUrl
)]
162
$"AppHost does not have the {KnownConfigNames.
ResourceServiceEndpointUrl
} setting defined.",
179
config[KnownConfigNames.
ResourceServiceEndpointUrl
] = "https://localhost:1235";
192
[InlineData(KnownConfigNames.
ResourceServiceEndpointUrl
)]
211
$"The {KnownConfigNames.
ResourceServiceEndpointUrl
} setting with a value of '{invalidUrl}' could not be parsed as a URI.",
231
config[KnownConfigNames.
ResourceServiceEndpointUrl
] = "https://localhost:1235";
255
config[KnownConfigNames.
ResourceServiceEndpointUrl
] = "https://localhost:1235";
268
[InlineData(KnownConfigNames.
ResourceServiceEndpointUrl
)]
286
$"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.",
324
[InlineData(KnownConfigNames.DashboardOtlpHttpEndpointUrl, KnownConfigNames.
ResourceServiceEndpointUrl
)]
325
[InlineData(KnownConfigNames.Legacy.DashboardOtlpHttpEndpointUrl, KnownConfigNames.
ResourceServiceEndpointUrl
)]