9 references to KnownEndpointNames
Aspire.Hosting.Maui (4)
MauiOtlpExtensions.cs (4)
129
throw new DistributedApplicationException($"The Aspire dashboard resource '{KnownResourceNames.AspireDashboard}' does not have an allocated OTLP endpoint named '{
KnownEndpointNames
.OtlpGrpcEndpointName}' or '{
KnownEndpointNames
.OtlpHttpEndpointName}', so the MAUI OTLP dev tunnel for resource '{parentBuilder.Resource.Name}' cannot start. Ensure dashboard OTLP ingestion is enabled, or configure an explicit OTLP endpoint URL.");
198
var grpcEndpoint = dashboardResource.GetEndpoint(
KnownEndpointNames
.OtlpGrpcEndpointName);
204
var httpEndpoint = dashboardResource.GetEndpoint(
KnownEndpointNames
.OtlpHttpEndpointName);
Aspire.Hosting.Maui.Tests (5)
MauiPlatformExtensionsTests.cs (5)
685
name:
KnownEndpointNames
.OtlpGrpcEndpointName,
703
var dashboardEndpoint = dashboard.Resource.Annotations.OfType<EndpointAnnotation>().Single(e => e.Name ==
KnownEndpointNames
.OtlpGrpcEndpointName);
740
name:
KnownEndpointNames
.OtlpGrpcEndpointName,
835
Assert.Contains(
KnownEndpointNames
.OtlpGrpcEndpointName, exception.Message);
836
Assert.Contains(
KnownEndpointNames
.OtlpHttpEndpointName, exception.Message);