32 references to KnownEndpointNames
Aspire.Hosting (9)
Dashboard\DashboardEventHandlers.cs (7)
412
AddDashboardOtlpEndpoint(dashboardResource, otlpHttpEndpointUrl,
KnownEndpointNames
.OtlpHttpEndpointName, endpointContext);
417
AddDashboardOtlpEndpoint(dashboardResource, otlpGrpcEndpointUrl,
KnownEndpointNames
.OtlpGrpcEndpointName, endpointContext, transport: "http2");
538
() => GetEndpointUrlAsync(dashboardResource,
KnownEndpointNames
.OtlpGrpcEndpointName, cancellationToken),
542
() => GetEndpointUrlAsync(dashboardResource,
KnownEndpointNames
.OtlpHttpEndpointName, cancellationToken),
627
var otlpHttp = ((IResourceWithEndpoints)context.Resource).GetEndpoint(
KnownEndpointNames
.OtlpHttpEndpointName, KnownNetworkIdentifiers.LocalhostNetwork);
819
var otlpGrpc = dashboardResource.GetEndpoint(
KnownEndpointNames
.OtlpGrpcEndpointName, KnownNetworkIdentifiers.LocalhostNetwork);
825
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)
251
var otlpGrpcEndpoint = new EndpointReference(dashboardResource,
KnownEndpointNames
.OtlpGrpcEndpointName);
456
var otlpGrpcEndpointAnnotation = dashboardResource.Annotations.OfType<EndpointAnnotation>().Single(e => e.Name ==
KnownEndpointNames
.OtlpGrpcEndpointName);
458
var otlpHttpEndpointAnnotation = dashboardResource.Annotations.OfType<EndpointAnnotation>().Single(e => e.Name ==
KnownEndpointNames
.OtlpHttpEndpointName);
538
var otlpGrpcEndpointAnnotation = dashboardResource.Annotations.OfType<EndpointAnnotation>().Single(e => e.Name ==
KnownEndpointNames
.OtlpGrpcEndpointName);
540
var otlpHttpEndpointAnnotation = dashboardResource.Annotations.OfType<EndpointAnnotation>().Single(e => e.Name ==
KnownEndpointNames
.OtlpHttpEndpointName);
Dashboard\DashboardResourceTests.cs (10)
210
var otlpGrpcEndpoint = Assert.Single(dashboard.Annotations.OfType<EndpointAnnotation>(), e => e.Name ==
KnownEndpointNames
.OtlpGrpcEndpointName);
211
var otlpHttpEndpoint = Assert.Single(dashboard.Annotations.OfType<EndpointAnnotation>(), e => e.Name ==
KnownEndpointNames
.OtlpHttpEndpointName);
244
var otlpGrpcEndpoint = Assert.Single(dashboard.Annotations.OfType<EndpointAnnotation>(), e => e.Name ==
KnownEndpointNames
.OtlpGrpcEndpointName);
245
var otlpHttpEndpoint = Assert.Single(dashboard.Annotations.OfType<EndpointAnnotation>(), e => e.Name ==
KnownEndpointNames
.OtlpHttpEndpointName);
287
var otlpGrpcEndpoint = Assert.Single(dashboard.Annotations.OfType<EndpointAnnotation>(), e => e.Name ==
KnownEndpointNames
.OtlpGrpcEndpointName);
288
var otlpHttpEndpoint = Assert.Single(dashboard.Annotations.OfType<EndpointAnnotation>(), e => e.Name ==
KnownEndpointNames
.OtlpHttpEndpointName);
503
Assert.DoesNotContain(dashboard.Annotations.OfType<EndpointAnnotation>(), e => e.Name ==
KnownEndpointNames
.OtlpGrpcEndpointName);
549
Assert.Contains(dashboard.Annotations.OfType<EndpointAnnotation>(), e => e.Name ==
KnownEndpointNames
.OtlpHttpEndpointName);
862
if (endpoint.Name ==
KnownEndpointNames
.OtlpGrpcEndpointName)
866
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);