32 references to KnownEndpointNames
Aspire.Hosting (9)
Dashboard\DashboardEventHandlers.cs (7)
259
AddDashboardOtlpEndpoint(dashboardResource, otlpHttpEndpointUrl,
KnownEndpointNames
.OtlpHttpEndpointName, endpointContext);
264
AddDashboardOtlpEndpoint(dashboardResource, otlpGrpcEndpointUrl,
KnownEndpointNames
.OtlpGrpcEndpointName, endpointContext, transport: "http2");
383
() => GetEndpointUrlAsync(dashboardResource,
KnownEndpointNames
.OtlpGrpcEndpointName, cancellationToken),
387
() => GetEndpointUrlAsync(dashboardResource,
KnownEndpointNames
.OtlpHttpEndpointName, cancellationToken),
472
var otlpHttp = ((IResourceWithEndpoints)context.Resource).GetEndpoint(
KnownEndpointNames
.OtlpHttpEndpointName, KnownNetworkIdentifiers.LocalhostNetwork);
664
var otlpGrpc = dashboardResource.GetEndpoint(
KnownEndpointNames
.OtlpGrpcEndpointName, KnownNetworkIdentifiers.LocalhostNetwork);
670
var otlpHttp = dashboardResource.GetEndpoint(
KnownEndpointNames
.OtlpHttpEndpointName, KnownNetworkIdentifiers.LocalhostNetwork);
OtlpConfigurationExtensions.cs (2)
295
var grpcEndpoint = dashboardResource.GetEndpoint(
KnownEndpointNames
.OtlpGrpcEndpointName);
296
var httpEndpoint = dashboardResource.GetEndpoint(
KnownEndpointNames
.OtlpHttpEndpointName);
Aspire.Hosting.Tests (23)
Dashboard\DashboardEventHandlersTests.cs (5)
274
var otlpGrpcEndpoint = new EndpointReference(dashboardResource,
KnownEndpointNames
.OtlpGrpcEndpointName);
479
var otlpGrpcEndpointAnnotation = dashboardResource.Annotations.OfType<EndpointAnnotation>().Single(e => e.Name ==
KnownEndpointNames
.OtlpGrpcEndpointName);
481
var otlpHttpEndpointAnnotation = dashboardResource.Annotations.OfType<EndpointAnnotation>().Single(e => e.Name ==
KnownEndpointNames
.OtlpHttpEndpointName);
561
var otlpGrpcEndpointAnnotation = dashboardResource.Annotations.OfType<EndpointAnnotation>().Single(e => e.Name ==
KnownEndpointNames
.OtlpGrpcEndpointName);
563
var otlpHttpEndpointAnnotation = dashboardResource.Annotations.OfType<EndpointAnnotation>().Single(e => e.Name ==
KnownEndpointNames
.OtlpHttpEndpointName);
Dashboard\DashboardResourceTests.cs (10)
222
var otlpGrpcEndpoint = Assert.Single(dashboard.Annotations.OfType<EndpointAnnotation>(), e => e.Name ==
KnownEndpointNames
.OtlpGrpcEndpointName);
223
var otlpHttpEndpoint = Assert.Single(dashboard.Annotations.OfType<EndpointAnnotation>(), e => e.Name ==
KnownEndpointNames
.OtlpHttpEndpointName);
256
var otlpGrpcEndpoint = Assert.Single(dashboard.Annotations.OfType<EndpointAnnotation>(), e => e.Name ==
KnownEndpointNames
.OtlpGrpcEndpointName);
257
var otlpHttpEndpoint = Assert.Single(dashboard.Annotations.OfType<EndpointAnnotation>(), e => e.Name ==
KnownEndpointNames
.OtlpHttpEndpointName);
299
var otlpGrpcEndpoint = Assert.Single(dashboard.Annotations.OfType<EndpointAnnotation>(), e => e.Name ==
KnownEndpointNames
.OtlpGrpcEndpointName);
300
var otlpHttpEndpoint = Assert.Single(dashboard.Annotations.OfType<EndpointAnnotation>(), e => e.Name ==
KnownEndpointNames
.OtlpHttpEndpointName);
515
Assert.DoesNotContain(dashboard.Annotations.OfType<EndpointAnnotation>(), e => e.Name ==
KnownEndpointNames
.OtlpGrpcEndpointName);
561
Assert.Contains(dashboard.Annotations.OfType<EndpointAnnotation>(), e => e.Name ==
KnownEndpointNames
.OtlpHttpEndpointName);
874
if (endpoint.Name ==
KnownEndpointNames
.OtlpGrpcEndpointName)
878
else if (endpoint.Name ==
KnownEndpointNames
.OtlpHttpEndpointName)
WithOtlpExporterTests.cs (8)
195
dashboard.Resource.Annotations.Add(new EndpointAnnotation(ProtocolType.Tcp, name:
KnownEndpointNames
.OtlpGrpcEndpointName, uriScheme: "http", port: 18889, isProxied: true, transport: "http2"));
196
dashboard.Resource.Annotations.Add(new EndpointAnnotation(ProtocolType.Tcp, name:
KnownEndpointNames
.OtlpHttpEndpointName, uriScheme: "http", port: 18890, isProxied: true));
204
var grpcAnnotation = dashboard.Resource.Annotations.OfType<EndpointAnnotation>().Single(e => e.Name ==
KnownEndpointNames
.OtlpGrpcEndpointName);
207
var httpAnnotation = dashboard.Resource.Annotations.OfType<EndpointAnnotation>().Single(e => e.Name ==
KnownEndpointNames
.OtlpHttpEndpointName);
250
dashboard.Resource.Annotations.Add(new EndpointAnnotation(ProtocolType.Tcp, name:
KnownEndpointNames
.OtlpGrpcEndpointName, uriScheme: "http", port: 18889, isProxied: true, transport: "http2"));
259
var grpcAnnotation = dashboard.Resource.Annotations.OfType<EndpointAnnotation>().Single(e => e.Name ==
KnownEndpointNames
.OtlpGrpcEndpointName);
280
dashboard.Resource.Annotations.Add(new EndpointAnnotation(ProtocolType.Tcp, name:
KnownEndpointNames
.OtlpGrpcEndpointName, uriScheme: "http", port: 18889, isProxied: true, transport: "http2"));
316
var dashboardAnnotation = dashboard.Resource.Annotations.OfType<EndpointAnnotation>().Single(e => e.Name ==
KnownEndpointNames
.OtlpGrpcEndpointName);