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),
474
var otlpHttp = ((IResourceWithEndpoints)context.Resource).GetEndpoint(
KnownEndpointNames
.OtlpHttpEndpointName, KnownNetworkIdentifiers.LocalhostNetwork);
690
var otlpGrpc = dashboardResource.GetEndpoint(
KnownEndpointNames
.OtlpGrpcEndpointName, KnownNetworkIdentifiers.LocalhostNetwork);
696
var otlpHttp = dashboardResource.GetEndpoint(
KnownEndpointNames
.OtlpHttpEndpointName, KnownNetworkIdentifiers.LocalhostNetwork);
OtlpConfigurationExtensions.cs (2)
310
var grpcEndpoint = dashboardResource.GetEndpoint(
KnownEndpointNames
.OtlpGrpcEndpointName);
311
var httpEndpoint = dashboardResource.GetEndpoint(
KnownEndpointNames
.OtlpHttpEndpointName);
Aspire.Hosting.Tests (23)
Dashboard\DashboardEventHandlersTests.cs (5)
280
var otlpGrpcEndpoint = new EndpointReference(dashboardResource,
KnownEndpointNames
.OtlpGrpcEndpointName);
547
var otlpGrpcEndpointAnnotation = dashboardResource.Annotations.OfType<EndpointAnnotation>().Single(e => e.Name ==
KnownEndpointNames
.OtlpGrpcEndpointName);
549
var otlpHttpEndpointAnnotation = dashboardResource.Annotations.OfType<EndpointAnnotation>().Single(e => e.Name ==
KnownEndpointNames
.OtlpHttpEndpointName);
629
var otlpGrpcEndpointAnnotation = dashboardResource.Annotations.OfType<EndpointAnnotation>().Single(e => e.Name ==
KnownEndpointNames
.OtlpGrpcEndpointName);
631
var otlpHttpEndpointAnnotation = dashboardResource.Annotations.OfType<EndpointAnnotation>().Single(e => e.Name ==
KnownEndpointNames
.OtlpHttpEndpointName);
Dashboard\DashboardResourceTests.cs (10)
228
var otlpGrpcEndpoint = Assert.Single(dashboard.Annotations.OfType<EndpointAnnotation>(), e => e.Name ==
KnownEndpointNames
.OtlpGrpcEndpointName);
229
var otlpHttpEndpoint = Assert.Single(dashboard.Annotations.OfType<EndpointAnnotation>(), e => e.Name ==
KnownEndpointNames
.OtlpHttpEndpointName);
262
var otlpGrpcEndpoint = Assert.Single(dashboard.Annotations.OfType<EndpointAnnotation>(), e => e.Name ==
KnownEndpointNames
.OtlpGrpcEndpointName);
263
var otlpHttpEndpoint = Assert.Single(dashboard.Annotations.OfType<EndpointAnnotation>(), e => e.Name ==
KnownEndpointNames
.OtlpHttpEndpointName);
305
var otlpGrpcEndpoint = Assert.Single(dashboard.Annotations.OfType<EndpointAnnotation>(), e => e.Name ==
KnownEndpointNames
.OtlpGrpcEndpointName);
306
var otlpHttpEndpoint = Assert.Single(dashboard.Annotations.OfType<EndpointAnnotation>(), e => e.Name ==
KnownEndpointNames
.OtlpHttpEndpointName);
521
Assert.DoesNotContain(dashboard.Annotations.OfType<EndpointAnnotation>(), e => e.Name ==
KnownEndpointNames
.OtlpGrpcEndpointName);
567
Assert.Contains(dashboard.Annotations.OfType<EndpointAnnotation>(), e => e.Name ==
KnownEndpointNames
.OtlpHttpEndpointName);
882
if (endpoint.Name ==
KnownEndpointNames
.OtlpGrpcEndpointName)
886
else if (endpoint.Name ==
KnownEndpointNames
.OtlpHttpEndpointName)
WithOtlpExporterTests.cs (8)
197
dashboard.Resource.Annotations.Add(new EndpointAnnotation(ProtocolType.Tcp, name:
KnownEndpointNames
.OtlpGrpcEndpointName, uriScheme: "http", port: 18889, isProxied: true, transport: "http2"));
198
dashboard.Resource.Annotations.Add(new EndpointAnnotation(ProtocolType.Tcp, name:
KnownEndpointNames
.OtlpHttpEndpointName, uriScheme: "http", port: 18890, isProxied: true));
206
var grpcAnnotation = dashboard.Resource.Annotations.OfType<EndpointAnnotation>().Single(e => e.Name ==
KnownEndpointNames
.OtlpGrpcEndpointName);
209
var httpAnnotation = dashboard.Resource.Annotations.OfType<EndpointAnnotation>().Single(e => e.Name ==
KnownEndpointNames
.OtlpHttpEndpointName);
252
dashboard.Resource.Annotations.Add(new EndpointAnnotation(ProtocolType.Tcp, name:
KnownEndpointNames
.OtlpGrpcEndpointName, uriScheme: "http", port: 18889, isProxied: true, transport: "http2"));
261
var grpcAnnotation = dashboard.Resource.Annotations.OfType<EndpointAnnotation>().Single(e => e.Name ==
KnownEndpointNames
.OtlpGrpcEndpointName);
282
dashboard.Resource.Annotations.Add(new EndpointAnnotation(ProtocolType.Tcp, name:
KnownEndpointNames
.OtlpGrpcEndpointName, uriScheme: "http", port: 18889, isProxied: true, transport: "http2"));
318
var dashboardAnnotation = dashboard.Resource.Annotations.OfType<EndpointAnnotation>().Single(e => e.Name ==
KnownEndpointNames
.OtlpGrpcEndpointName);