1 interface inheriting from IResourceWithEndpoints
Aspire.Hosting (1)
ApplicationModel\IResourceWithServiceDiscovery.cs (1)
11public interface IResourceWithServiceDiscovery : IResourceWithEndpoints
37 implementations of IResourceWithEndpoints
Aspire.Hosting (3)
ApplicationModel\ContainerExecutableResource.cs (1)
13: Resource(name), IResourceWithEnvironment, IResourceWithArgs, IResourceWithEndpoints, IResourceWithWaitSupport
ApplicationModel\ContainerResource.cs (1)
18: Resource(name), IResourceWithEnvironment, IResourceWithArgs, IResourceWithEndpoints, IResourceWithWaitSupport, IResourceWithProbes,
ApplicationModel\ExecutableResource.cs (1)
22public class ExecutableResource : Resource, IResourceWithEnvironment, IResourceWithArgs, IResourceWithEndpoints, IResourceWithWaitSupport, IResourceWithProbes,
Aspire.Hosting.Azure.AppConfiguration (1)
AzureAppConfigurationResource.cs (1)
19IResourceWithConnectionString, IResourceWithEndpoints, IAzurePrivateEndpointTarget
Aspire.Hosting.Azure.CosmosDB (1)
AzureCosmosDBResource.cs (1)
22IResourceWithEndpoints,
Aspire.Hosting.Azure.EventHubs (1)
AzureEventHubsResource.cs (1)
19: AzureProvisioningResource(name, configureInfrastructure), IResourceWithConnectionString, IResourceWithEndpoints, IResourceWithAzureFunctionsConfig, IAzurePrivateEndpointTarget, IAzureNspAssociationTarget
Aspire.Hosting.Azure.Functions (1)
DurableTask\DurableTaskSchedulerResource.cs (1)
15public sealed class DurableTaskSchedulerResource(string name) : Resource(name), IResourceWithEndpoints, IResourceWithConnectionString
Aspire.Hosting.Azure.KeyVault (1)
AzureKeyVaultResource.cs (1)
18: AzureProvisioningResource(name, configureInfrastructure), IResourceWithEndpoints, IResourceWithConnectionString, IAzureKeyVaultResource, IAzurePrivateEndpointTarget, IAzureNspAssociationTarget
Aspire.Hosting.Azure.Kusto (1)
AzureKustoClusterResource.cs (1)
19public class AzureKustoClusterResource : AzureProvisioningResource, IResourceWithConnectionString, IResourceWithEndpoints
Aspire.Hosting.Azure.PostgreSQL (1)
AzurePostgresFlexibleServerResource.cs (1)
22: AzureProvisioningResource(name, configureInfrastructure), IResourceWithEndpoints, IResourceWithConnectionString, IAzurePrivateEndpointTarget
Aspire.Hosting.Azure.Redis (1)
AzureRedisCacheResource.cs (1)
19: AzureProvisioningResource(name, configureInfrastructure), IResourceWithEndpoints, IResourceWithConnectionString
Aspire.Hosting.Azure.ServiceBus (1)
AzureServiceBusResource.cs (1)
19: AzureProvisioningResource(name, configureInfrastructure), IResourceWithConnectionString, IResourceWithAzureFunctionsConfig, IResourceWithEndpoints, IAzurePrivateEndpointTarget, IAzureNspAssociationTarget
Aspire.Hosting.Azure.SignalR (1)
AzureSignalRResource.cs (1)
18: AzureProvisioningResource(name, configureInfrastructure), IResourceWithConnectionString, IResourceWithEndpoints, IAzurePrivateEndpointTarget
Aspire.Hosting.Azure.Storage (1)
AzureStorageResource.cs (1)
18: AzureProvisioningResource(name, configureInfrastructure), IResourceWithEndpoints, IResourceWithAzureFunctionsConfig, IAzureNspAssociationTarget
Aspire.Hosting.Browsers.Tests (2)
BrowserLogsBuilderExtensionsTests.cs (1)
1731private sealed class TestHttpResource(string name) : Resource(name), IResourceWithEndpoints;
BrowserLogsSessionManagerTests.cs (1)
680private sealed class TestResourceWithEndpoints(string name) : Resource(name), IResourceWithEndpoints;
Aspire.Hosting.Foundry (1)
FoundryResource.cs (1)
20AzureProvisioningResource(name, configureInfrastructure), IResourceWithEndpoints, IResourceWithConnectionString, IAzurePrivateEndpointTarget, IAzureNspAssociationTarget
Aspire.Hosting.Maui (1)
Otlp\OtlpLoopbackResource.cs (1)
17internal sealed class OtlpLoopbackResource : Resource, IResourceWithEndpoints
Aspire.Hosting.RemoteHost.Tests (1)
CapabilityDispatcherTests.cs (1)
2646internal sealed class TestEndpointResource : Resource, IResourceWithEndpoints
Aspire.Hosting.Testing.Tests (1)
TestingPublicApiTests.cs (1)
494private sealed class TestResource(string name) : Resource(name), IResourceWithEndpoints;
Aspire.Hosting.Tests (15)
ApplicationModel\McpServerEndpointAnnotationTests.cs (1)
193private sealed class TestResourceWithEndpoints(string name) : Resource(name), IResourceWithEndpoints
Backchannel\AuxiliaryBackchannelRpcTargetTests.cs (1)
1599private sealed class CustomResourceWithEndpoints(string name) : Resource(name), IResourceWithEndpoints
ComputeEnvironmentEndpointResolverTests.cs (1)
165private sealed class TestComputeResource(string name) : Resource(name), IComputeResource, IResourceWithEndpoints
ComputeEnvironmentValidationTests.cs (1)
114private sealed class TestComputeResource(string name) : Resource(name), IComputeResource, IResourceWithEndpoints
ConditionalReferenceExpressionTests.cs (2)
98private sealed class TestResourceWithEndpoints(string name) : Resource(name), IResourceWithEndpoints 182private sealed class TestResourceWithEndpoints(string name) : Resource(name), IResourceWithEndpoints
Dcp\DcpExecutorTests.cs (1)
10294private sealed class TestContainerResource(string name) : Resource(name), IResourceWithEndpoints;
EndpointReferenceTests.cs (1)
473private sealed class TestResource(string name) : Resource(name), IResourceWithEndpoints
ExpressionResolverTests.cs (2)
338sealed class TestExpressionResolverResource : ContainerResource, IResourceWithEndpoints, IResourceWithConnectionString 370public sealed class TestHostResource : Resource, IResourceWithEndpoints
ResourceCommandServiceTests.cs (1)
1883private sealed class CustomResource(string name) : Resource(name), IResourceWithEndpoints, IResourceWithWaitSupport
ResourceNotificationTests.cs (1)
1422IResourceWithEndpoints
ResourceWithProbeTests.cs (1)
58private sealed class CustomResourceWithProbes(string name) : Resource(name), IResourceWithProbes, IResourceWithEndpoints
WithHttpCommandTests.cs (1)
1088private sealed class CustomResource(string name) : Resource(name), IResourceWithEndpoints, IResourceWithWaitSupport
WithUrlsTests.cs (1)
990private sealed class CustomResource(string name) : Resource(name), IResourceWithEndpoints
HealthChecksSandbox.AppHost (1)
AppHost.cs (1)
122internal sealed class TestResource(string name) : Resource(name), IResourceWithEndpoints;
Stress.AppHost (1)
TestResource.cs (1)
221sealed class HttpCommandGroupResource(string name, IResource parent) : Resource(name), IResourceWithParent, IResourceWithEndpoints
162 references to IResourceWithEndpoints
Aspire.Hosting (86)
ApplicationModel\EndpointReference.cs (5)
47public IResourceWithEndpoints Resource { get; } 262public EndpointReference(IResourceWithEndpoints owner, EndpointAnnotation endpoint, NetworkIdentifier? contextNetworkId) 278public EndpointReference(IResourceWithEndpoints owner, EndpointAnnotation endpoint): this(owner, endpoint, null) 294public EndpointReference(IResourceWithEndpoints owner, string endpointName, NetworkIdentifier? contextNetworkId = null) 309public EndpointReference(IResourceWithEndpoints owner, string endpointName): this(owner, endpointName, null)
ApplicationModel\EndpointReferenceAnnotation.cs (2)
12public sealed class EndpointReferenceAnnotation(IResourceWithEndpoints resource) : IResourceAnnotation 17public IResourceWithEndpoints Resource { get; } = resource ?? throw new ArgumentNullException(nameof(resource));
ApplicationModel\HostUrl.cs (1)
66.OfType<IResourceWithEndpoints>()
ApplicationModel\McpServerEndpointAnnotation.cs (2)
19public McpServerEndpointAnnotation(Func<IResourceWithEndpoints, CancellationToken, Task<Uri?>> endpointUrlResolver) 28public Func<IResourceWithEndpoints, CancellationToken, Task<Uri?>> EndpointUrlResolver { get; }
ApplicationModel\ResourceExtensions.cs (10)
753/// <param name="resource">The <see cref="IResourceWithEndpoints"/> which contains <see cref="EndpointAnnotation"/> annotations.</param> 756public static IEnumerable<EndpointReference> GetEndpoints(this IResourceWithEndpoints resource) 769/// <param name="resource">The <see cref="IResourceWithEndpoints"/> which contains <see cref="EndpointAnnotation"/> annotations.</param> 773public static IEnumerable<EndpointReference> GetEndpoints(this IResourceWithEndpoints resource, NetworkIdentifier contextNetworkId) 786/// <param name="resource">The <see cref="IResourceWithEndpoints"/> which contains <see cref="EndpointAnnotation"/> annotations.</param> 790public static EndpointReference GetEndpoint(this IResourceWithEndpoints resource, string endpointName) 808/// <param name="resource">The <see cref="IResourceWithEndpoints"/> which contains <see cref="EndpointAnnotation"/> annotations.</param> 813public static EndpointReference GetEndpoint(this IResourceWithEndpoints resource, string endpointName, NetworkIdentifier contextNetworkId) 1848foreach (var resource in model.Resources.Where(r => !r.IsContainer()).OfType<IResourceWithEndpoints>())
ApplicationModel\ResourceUrlsCallbackContext.cs (4)
27/// If <see cref="Resource"/> does not implement <see cref="IResourceWithEndpoints"/> then returns <c>null</c>. 35IResourceWithEndpoints resourceWithEndpoints => resourceWithEndpoints.GetEndpoint(name), 41/// If <see cref="Resource"/> does not implement <see cref="IResourceWithEndpoints"/> then returns <c>null</c>. 48IResourceWithEndpoints resourceWithEndpoints => resourceWithEndpoints.GetEndpoint(name, contextNetworkId),
Ats\AtsTypeMappings.cs (1)
40[assembly: AspireExport(typeof(IResourceWithEndpoints))]
Ats\EventingExports.cs (1)
137where T : IResourceWithEndpoints
Backchannel\AuxiliaryBackchannelRpcTarget.cs (3)
1049if (resource is IResourceWithEndpoints resourceWithEndpoints && 1778var resource = appModel.Resources 1779.OfType<IResourceWithEndpoints>()
Backchannel\DashboardUrlsHelper.cs (2)
38var dashboardResource = appModel?.Resources.SingleOrDefault( 39r => string.Equals(r.Name, KnownResourceNames.AspireDashboard, StringComparisons.ResourceName)) as IResourceWithEndpoints;
Dashboard\DashboardEventHandlers.cs (6)
509var dashboardResource = @event.Resource as IResourceWithEndpoints; 571private static async ValueTask<string?> GetEndpointUrlAsync(IResourceWithEndpoints? resourceWithEndpoints, string endpointName, CancellationToken cancellationToken) 627var otlpHttp = ((IResourceWithEndpoints)context.Resource).GetEndpoint(KnownEndpointNames.OtlpHttpEndpointName, KnownNetworkIdentifiers.LocalhostNetwork); 813var dashboardResource = (IResourceWithEndpoints)context.Resource;
Dcp\ContainerCreator.cs (2)
24IResourceWithEndpoints Resource, 29if (resource is IResourceWithEndpoints rwe && !resource.IsContainer())
DistributedApplicationEventingExtensions.cs (1)
113where T : IResourceWithEndpoints
McpServerResourceBuilderExtensions.cs (1)
47where T : IResourceWithEndpoints
Orchestrator\ApplicationOrchestrator.cs (1)
311if (resource.TryGetEndpoints(out var endpoints) && resource is IResourceWithEndpoints resourceWithEndpoints)
OtlpConfigurationExtensions.cs (1)
211if (!model.Resources.TryGetByName(KnownResourceNames.AspireDashboard, out var resource) || resource is not IResourceWithEndpoints dashboardResource)
ProjectResourceBuilderExtensions.cs (5)
481where TProjectResource : class, IResourceWithEnvironment, IResourceWithEndpoints, IResourceWithArgs 1084where T : IResourceWithEnvironment, IResourceWithEndpoints 1129where T : IResourceWithEnvironment, IResourceWithEndpoints 1139where T : IResourceWithEnvironment, IResourceWithEndpoints 1175where T : IResourceWithEnvironment, IResourceWithEndpoints
ResourceBuilderExtensions.cs (38)
1390private static void ApplyEndpoints<T>(this IResourceBuilder<T> builder, IResourceWithEndpoints resourceWithEndpoints, string? endpointName = null, string? name = null) 1461public static IResourceBuilder<T> WithEndpoint<T>(this IResourceBuilder<T> builder, [EndpointName] string endpointName, Action<EndpointAnnotation> callback, bool createIfNotExists = true) where T : IResourceWithEndpoints 1498internal static IResourceBuilder<T> WithEndpointCallback<T>(this IResourceBuilder<T> builder, [EndpointName] string endpointName, Action<EndpointUpdateContext> callback, bool createIfNotExists = true) where T : IResourceWithEndpoints 1511internal static IResourceBuilder<T> WithHttpEndpointCallback<T>(this IResourceBuilder<T> builder, Action<EndpointUpdateContext> callback, [EndpointName] string? name = null, bool createIfNotExists = true) where T : IResourceWithEndpoints 1523internal static IResourceBuilder<T> WithHttpsEndpointCallback<T>(this IResourceBuilder<T> builder, Action<EndpointUpdateContext> callback, [EndpointName] string? name = null, bool createIfNotExists = true) where T : IResourceWithEndpoints 1531private static IResourceBuilder<T> WithWellKnownEndpointCallback<T>(this IResourceBuilder<T> builder, Action<EndpointUpdateContext> callback, string endpointName, bool createIfNotExists, Action<IResourceBuilder<T>, string> createEndpoint) where T : IResourceWithEndpoints 1562public static IResourceBuilder<T> WithEndpoint<T>(this IResourceBuilder<T> builder, int? port = null, int? targetPort = null, string? scheme = null, [EndpointName] string? name = null, string? env = null, bool? isProxied = null, bool? isExternal = null, ProtocolType? protocol = null) where T : IResourceWithEndpoints 1639public static IResourceBuilder<T> WithEndpoint<T>(this IResourceBuilder<T> builder, int? port, int? targetPort, string? scheme, [EndpointName] string? name, string? env, bool isProxied, bool? isExternal, ProtocolType? protocol) where T : IResourceWithEndpoints 1650private static void ConfigureEndpointEnvironmentVariable<T>(IResourceBuilder<T> builder, EndpointAnnotation endpointAnnotation, string? env) where T : IResourceWithEndpoints 1652if (env is null || builder.Resource is not IResourceWithEndpoints resourceWithEndpoints || builder.Resource is not IResourceWithEnvironment) 1690public static IResourceBuilder<IResourceWithEndpoints> WithEndpointProxySupport(this IResourceBuilder<IResourceWithEndpoints> builder, bool proxyEnabled) 1695internal static IResourceBuilder<T> SetEndpointProxySupport<T>(IResourceBuilder<T> builder, bool proxyEnabled) where T : IResourceWithEndpoints 1724public static IResourceBuilder<T> WithEndpoint<T>(this IResourceBuilder<T> builder, int? port, int? targetPort, string? scheme, [EndpointName] string? name, string? env, bool? isProxied, bool? isExternal) where T : IResourceWithEndpoints 1749public static IResourceBuilder<T> WithEndpoint<T>(this IResourceBuilder<T> builder, int? port, int? targetPort, string? scheme, [EndpointName] string? name, string? env, bool isProxied, bool? isExternal) where T : IResourceWithEndpoints 1774public static IResourceBuilder<T> WithHttpEndpoint<T>(this IResourceBuilder<T> builder, int? port = null, int? targetPort = null, [EndpointName] string? name = null, string? env = null, bool? isProxied = null) where T : IResourceWithEndpoints 1797public static IResourceBuilder<T> WithHttpEndpoint<T>(this IResourceBuilder<T> builder, int? port, int? targetPort, [EndpointName] string? name, string? env, bool isProxied) where T : IResourceWithEndpoints 1822public static IResourceBuilder<T> WithHttpsEndpoint<T>(this IResourceBuilder<T> builder, int? port = null, int? targetPort = null, [EndpointName] string? name = null, string? env = null, bool? isProxied = null) where T : IResourceWithEndpoints 1845public static IResourceBuilder<T> WithHttpsEndpoint<T>(this IResourceBuilder<T> builder, int? port, int? targetPort, [EndpointName] string? name, string? env, bool isProxied) where T : IResourceWithEndpoints 1858public static IResourceBuilder<T> WithExternalHttpEndpoints<T>(this IResourceBuilder<T> builder) where T : IResourceWithEndpoints 1889public static EndpointReference GetEndpoint<T>(this IResourceBuilder<T> builder, [EndpointName] string name, NetworkIdentifier contextNetworkId) where T : IResourceWithEndpoints 1906public static EndpointReference GetEndpoint<T>(this IResourceBuilder<T> builder, [EndpointName] string name) where T : IResourceWithEndpoints 1921public static IResourceBuilder<T> AsHttp2Service<T>(this IResourceBuilder<T> builder) where T : IResourceWithEndpoints 2231where T : IResourceWithEndpoints 2733/// <typeparam name="T">A resource type that implements <see cref="IResourceWithEndpoints" />.</typeparam> 2762public static IResourceBuilder<T> WithHttpHealthCheck<T>(this IResourceBuilder<T> builder, string? path = null, int? statusCode = null, string? endpointName = null) where T : IResourceWithEndpoints 2776/// <typeparam name="T">A resource type that implements <see cref="IResourceWithEndpoints" />.</typeparam> 2804public static IResourceBuilder<T> WithHttpHealthCheck<T>(this IResourceBuilder<T> builder, Func<EndpointReference>? endpointSelector, string? path = null, int? statusCode = null) where T : IResourceWithEndpoints 2856/// <typeparam name="T">A resource type that implements <see cref="IResourceWithEndpoints" />.</typeparam> 2883public static IResourceBuilder<T> WithHttpsHealthCheck<T>(this IResourceBuilder<T> builder, string? path = null, int? statusCode = null, string? endpointName = null) where T : IResourceWithEndpoints 3602where TResource : IResourceWithEndpoints 3679where TResource : IResourceWithEndpoints 3787where TResource : IResourceWithEndpoints 4368where TResource : IResourceWithEndpoints 4394where TResource : IResourceWithEndpoints 5010where T : IResourceWithEndpoints, IResourceWithProbes 5029where T : IResourceWithEndpoints, IResourceWithProbes 5070where T : IResourceWithEndpoints, IResourceWithProbes
Aspire.Hosting.Azure.AppContainers (2)
AzureContainerAppEnvironmentResource.cs (1)
349var resource = endpointReference.Resource;
src\Shared\ComputeEnvironmentEndpointResolver.cs (1)
84var owningResource = endpointReferenceExpression.Endpoint.Resource;
Aspire.Hosting.Azure.AppService (2)
AzureAppServiceEnvironmentResource.cs (1)
510var resource = endpointReference.Resource;
src\Shared\ComputeEnvironmentEndpointResolver.cs (1)
84var owningResource = endpointReferenceExpression.Endpoint.Resource;
Aspire.Hosting.Azure.FrontDoor (7)
AzureFrontDoorExtensions.cs (4)
84var originResource = originAnnotation.Resource; 185IResourceBuilder<T> resource) where T : IComputeResource, IResourceWithEndpoints 214private static EndpointReference GetOriginEndpoint(IResourceWithEndpoints resource) 231private static (string Path, HealthProbeProtocol Protocol) GetProbeSettings(IResourceWithEndpoints resource)
AzureFrontDoorOriginAnnotation.cs (2)
11internal sealed class AzureFrontDoorOriginAnnotation(IResourceWithEndpoints resource) : IResourceAnnotation 16public IResourceWithEndpoints Resource { get; } = resource ?? throw new ArgumentNullException(nameof(resource));
src\Shared\ComputeEnvironmentEndpointResolver.cs (1)
84var owningResource = endpointReferenceExpression.Endpoint.Resource;
Aspire.Hosting.Blazor (5)
BlazorGatewayExtensions.cs (2)
681private static EndpointReference? GetEndpointIfDefined(IResourceWithEndpoints resource, string endpointName) 757&& resource is IResourceWithEndpoints dashboardResource)
BlazorHostedExtensions.cs (1)
184private static EndpointReference? GetEndpointIfDefined(IResourceWithEndpoints resource, string endpointName)
BrowserDebuggerHelper.cs (2)
39IResourceWithEndpoints parentResource, 62IResourceWithEndpoints parentResource,
Aspire.Hosting.Browsers (3)
BrowserLogsBuilderExtensions.cs (1)
120where T : IResourceWithEndpoints
BrowserLogsResource.cs (2)
11IResourceWithEndpoints parentResource, 16public IResourceWithEndpoints ParentResource { get; } = parentResource;
Aspire.Hosting.Browsers.Tests (3)
src\Aspire.Hosting.Browsers\BrowserLogsBuilderExtensions.cs (1)
120where T : IResourceWithEndpoints
src\Aspire.Hosting.Browsers\BrowserLogsResource.cs (2)
11IResourceWithEndpoints parentResource, 16public IResourceWithEndpoints ParentResource { get; } = parentResource;
Aspire.Hosting.Containers.Tests (1)
ContainerResourceTests.cs (1)
120context.Args.Add(((IResourceWithEndpoints)context.Resource).GetEndpoint("ep"));
Aspire.Hosting.DevTunnels (5)
DevTunnelResourceBuilderExtensions.cs (5)
266where TResource : IResourceWithEndpoints 290where TResource : IResourceWithEndpoints 383where TResource : IResourceWithEndpoints 467IResourceBuilder<IResourceWithEndpoints> targetResource, IResourceBuilder<DevTunnelResource> tunnelResource) 538var targetResource = targetEndpoint.Resource;
Aspire.Hosting.Docker (1)
DockerComposeEnvironmentResource.cs (1)
265var resource = endpointReference.Resource;
Aspire.Hosting.Docker.Tests (2)
DockerComposePublisherTests.cs (2)
66var resource = (IResourceWithEndpoints)context.Resource;
Aspire.Hosting.Foundry (17)
HostedAgent\HostedAgentBuilderExtension.cs (15)
49where T : IResourceWithEndpoints, IResourceWithEnvironment, IComputeResource 66where T : IResourceWithEndpoints, IResourceWithEnvironment, IComputeResource 90where T : IResourceWithEndpoints, IResourceWithEnvironment, IComputeResource 110where T : IResourceWithEndpoints, IResourceWithEnvironment, IComputeResource 137where T : IResourceWithEndpoints, IResourceWithEnvironment, IComputeResource 169where T : IResourceWithEndpoints, IResourceWithEnvironment, IComputeResource 200where T : IResourceWithEndpoints, IResourceWithEnvironment, IComputeResource 211where T : IResourceWithEndpoints, IResourceWithEnvironment, IComputeResource 251where T : IResourceWithEndpoints, IResourceWithEnvironment, IComputeResource 260where T : IResourceWithEndpoints, IResourceWithEnvironment, IComputeResource 274where T : IResourceWithEndpoints, IResourceWithEnvironment, IComputeResource 287where T : IResourceWithEndpoints, IResourceWithEnvironment, IComputeResource 439where T : IResourceWithEndpoints, IResourceWithEnvironment, IComputeResource 563where T : IResourceWithEndpoints, IResourceWithEnvironment, IComputeResource 565if (target is not IResourceWithEndpoints targetWithEndpoints ||
Project\ProjectResource.cs (1)
245var resource = endpointReference.Resource;
src\Shared\ComputeEnvironmentEndpointResolver.cs (1)
84var owningResource = endpointReferenceExpression.Endpoint.Resource;
Aspire.Hosting.Foundry.Tests (1)
HostedAgentExtensionTests.cs (1)
143Endpoint = ((IResourceWithEndpoints)resource).GetEndpoint("http")
Aspire.Hosting.Kubernetes (4)
KubernetesEnvironmentResource.cs (3)
400var resource = endpointReference.Resource; 924var targetResource = endpointRef.Resource; 1233var targetResource = endpointRef.Resource;
src\Shared\ComputeEnvironmentEndpointResolver.cs (1)
84var owningResource = endpointReferenceExpression.Endpoint.Resource;
Aspire.Hosting.Maui (1)
MauiOtlpExtensions.cs (1)
193if (!string.Equals(resource.Name, KnownResourceNames.AspireDashboard, StringComparisons.ResourceName) || resource is not IResourceWithEndpoints dashboardResource)
Aspire.Hosting.Orleans (3)
OrleansServiceClientExtensions.cs (1)
25where T : IResourceWithEnvironment, IResourceWithEndpoints
OrleansServiceExtensions.cs (2)
417where T : IResourceWithEnvironment, IResourceWithEndpoints 426where T : IResourceWithEnvironment, IResourceWithEndpoints
Aspire.Hosting.Python (1)
PythonAppResourceBuilderExtensions.cs (1)
289var endpoint = ((IResourceWithEndpoints)c.Resource).GetEndpoint("http");
Aspire.Hosting.Radius (1)
RadiusEnvironmentResource.cs (1)
115var resource = endpointReference.Resource;
Aspire.Hosting.RemoteHost.Tests (1)
CapabilityDispatcherTests.cs (1)
2230public static void WithHttpEndpoint<T>(IResourceBuilder<T> builder) where T : IResourceWithEndpoints
Aspire.Hosting.Testing (3)
DistributedApplicationHostingTestingExtensions.cs (3)
93resource is not IResourceWithEndpoints dashboardResource) 268if (resource is not IResourceWithEndpoints resourceWithEndpoints) 302static EndpointReference? GetEndpointOrDefault(IResourceWithEndpoints resourceWithEndpoints, string endpointName, NetworkIdentifier? networkIdentifier = default)
Aspire.Hosting.Tests (13)
Dashboard\DashboardEventHandlersTests.cs (2)
247var dashboardResource = (IResourceWithEndpoints)model.Resources.Single(r => string.Equals(r.Name, KnownResourceNames.AspireDashboard, StringComparisons.ResourceName));
Dashboard\DashboardResourceTests.cs (2)
834new() { Url = "http://localhost:5003", Endpoint = ((IResourceWithEndpoints)dashboard).GetEndpoint("http") }, 835new() { Url = "https://localhost:5005", Endpoint = ((IResourceWithEndpoints)dashboard).GetEndpoint("https") }
Dcp\DcpExecutorTests.cs (3)
3759var endpoint = ((IResourceWithEndpoints)@event.Resource).GetEndpoint("NoPortTargetPortSet"); 8868async ValueTask AssertTunneledPort(IResourceWithEndpoints resource, string endpointName, int hostPort) 8912async ValueTask AssertEndpoint(IResourceWithEndpoints resource, string name, NetworkIdentifier network, string address, int port)
EndpointReferenceTests.cs (3)
335var source = CreateResource("caller", sourceKind); 336var destination = CreateResource("destination", destinationKind); 366static IResourceWithEndpoints CreateResource(string name, ResourceKind kind)
ExecutableResourceTests.cs (1)
40context.Args.Add(((IResourceWithEndpoints)context.Resource).GetEndpoint("ep"));
ProjectResourceTests.cs (1)
704context.Args.Add(((IResourceWithEndpoints)context.Resource).GetEndpoint("ep"));
src\Shared\ComputeEnvironmentEndpointResolver.cs (1)
84var owningResource = endpointReferenceExpression.Endpoint.Resource;