1 interface inheriting from IResourceWithEndpoints
Aspire.Hosting (1)
ApplicationModel\IResourceWithServiceDiscovery.cs (1)
11public interface IResourceWithServiceDiscovery : IResourceWithEndpoints
39 implementations of IResourceWithEndpoints
Aspire.Hosting (3)
ApplicationModel\ContainerExecutableResource.cs (1)
13: Resource(name), IResourceWithEnvironment, IResourceWithArgs, IResourceWithEndpoints, IResourceWithWaitSupport
ApplicationModel\ContainerResource.cs (1)
16: Resource(name), IResourceWithEnvironment, IResourceWithArgs, IResourceWithEndpoints, IResourceWithWaitSupport, IResourceWithProbes,
ApplicationModel\ExecutableResource.cs (1)
20public 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.Azure.WebPubSub (1)
AzureWebPubSubResource.cs (1)
18: AzureProvisioningResource(name, configureInfrastructure), IResourceWithConnectionString, IResourceWithEndpoints, IAzurePrivateEndpointTarget
Aspire.Hosting.Browsers.Tests (2)
BrowserLogsBuilderExtensionsTests.cs (1)
1730private sealed class TestHttpResource(string name) : Resource(name), IResourceWithEndpoints;
BrowserLogsSessionManagerTests.cs (1)
679private 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.Radius.Tests (1)
Publishing\BackingResourceValueResolutionTests.cs (1)
1490private sealed class DaprStateStoreResource(string name) : ContainerResource(name), IResourceWithEndpoints
Aspire.Hosting.RemoteHost.Tests (1)
CapabilityDispatcherTests.cs (1)
2859internal 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)
1600private 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)
11627private 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)
1996private sealed class CustomResource(string name) : Resource(name), IResourceWithEndpoints, IResourceWithWaitSupport
ResourceNotificationTests.cs (1)
1713IResourceWithEndpoints
ResourceWithProbeTests.cs (1)
56private 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)
1164private sealed class CustomResource(string name, ResourceAnnotationCollection? annotations = null) : 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
172 references to IResourceWithEndpoints
Aspire.Hosting (89)
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)
754/// <param name="resource">The <see cref="IResourceWithEndpoints"/> which contains <see cref="EndpointAnnotation"/> annotations.</param> 757public static IEnumerable<EndpointReference> GetEndpoints(this IResourceWithEndpoints resource) 770/// <param name="resource">The <see cref="IResourceWithEndpoints"/> which contains <see cref="EndpointAnnotation"/> annotations.</param> 774public static IEnumerable<EndpointReference> GetEndpoints(this IResourceWithEndpoints resource, NetworkIdentifier contextNetworkId) 787/// <param name="resource">The <see cref="IResourceWithEndpoints"/> which contains <see cref="EndpointAnnotation"/> annotations.</param> 791public static EndpointReference GetEndpoint(this IResourceWithEndpoints resource, string endpointName) 809/// <param name="resource">The <see cref="IResourceWithEndpoints"/> which contains <see cref="EndpointAnnotation"/> annotations.</param> 814public static EndpointReference GetEndpoint(this IResourceWithEndpoints resource, string endpointName, NetworkIdentifier contextNetworkId) 1907foreach (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)
1078if (resource is IResourceWithEndpoints resourceWithEndpoints && 1808var resource = appModel.Resources 1809.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)
354var dashboardResource = @event.Resource as IResourceWithEndpoints; 416private static async ValueTask<string?> GetEndpointUrlAsync(IResourceWithEndpoints? resourceWithEndpoints, string endpointName, CancellationToken cancellationToken) 473var otlpHttp = ((IResourceWithEndpoints)context.Resource).GetEndpoint(KnownEndpointNames.OtlpHttpEndpointName, KnownNetworkIdentifiers.LocalhostNetwork); 659var dashboardResource = (IResourceWithEndpoints)context.Resource;
Dcp\ContainerNetworkEndpointProvisioner.cs (3)
22IResourceWithEndpoints Resource, 27if (resource is IResourceWithEndpoints resourceWithEndpoints && !resource.IsContainer()) 238var newEndpointsByResource = new Dictionary<IResourceWithEndpoints, List<EndpointAnnotation>>(ReferenceEqualityComparer.Instance);
Dcp\ExecutableCreator.cs (1)
131var endpointsByResource = new Dictionary<IResourceWithEndpoints, HashSet<EndpointAnnotation>>(ReferenceEqualityComparer.Instance);
DistributedApplicationEventingExtensions.cs (1)
113where T : IResourceWithEndpoints
McpServerResourceBuilderExtensions.cs (1)
47where T : IResourceWithEndpoints
Orchestrator\ApplicationOrchestrator.cs (1)
309if (resource.TryGetEndpoints(out var endpoints) && resource is IResourceWithEndpoints resourceWithEndpoints)
OtlpConfigurationExtensions.cs (1)
290if (!model.Resources.TryGetByName(KnownResourceNames.AspireDashboard, out var resource) || resource is not IResourceWithEndpoints dashboardResource)
ProjectResourceBuilderExtensions.cs (5)
501where TProjectResource : class, IResourceWithEnvironment, IResourceWithEndpoints, IResourceWithArgs 1131where T : IResourceWithEnvironment, IResourceWithEndpoints 1176where T : IResourceWithEnvironment, IResourceWithEndpoints 1186where T : IResourceWithEnvironment, IResourceWithEndpoints 1222where T : IResourceWithEnvironment, IResourceWithEndpoints
ResourceBuilderExtensions.cs (39)
1702private static void ApplyEndpoints<T>(this IResourceBuilder<T> builder, IResourceWithEndpoints resourceWithEndpoints, string? endpointName = null, string? name = null) 1773public static IResourceBuilder<T> WithEndpoint<T>(this IResourceBuilder<T> builder, [EndpointName] string endpointName, Action<EndpointAnnotation> callback, bool createIfNotExists = true) where T : IResourceWithEndpoints 1810internal static IResourceBuilder<T> WithEndpointCallback<T>(this IResourceBuilder<T> builder, [EndpointName] string endpointName, Action<EndpointUpdateContext> callback, bool createIfNotExists = true) where T : IResourceWithEndpoints 1823internal static IResourceBuilder<T> WithHttpEndpointCallback<T>(this IResourceBuilder<T> builder, Action<EndpointUpdateContext> callback, [EndpointName] string? name = null, bool createIfNotExists = true) where T : IResourceWithEndpoints 1835internal static IResourceBuilder<T> WithHttpsEndpointCallback<T>(this IResourceBuilder<T> builder, Action<EndpointUpdateContext> callback, [EndpointName] string? name = null, bool createIfNotExists = true) where T : IResourceWithEndpoints 1843private static IResourceBuilder<T> WithWellKnownEndpointCallback<T>(this IResourceBuilder<T> builder, Action<EndpointUpdateContext> callback, string endpointName, bool createIfNotExists, Action<IResourceBuilder<T>, string> createEndpoint) where T : IResourceWithEndpoints 1874public 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 1951public 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 1962private static void ConfigureEndpointEnvironmentVariable<T>(IResourceBuilder<T> builder, EndpointAnnotation endpointAnnotation, string? env) where T : IResourceWithEndpoints 1964if (env is null || builder.Resource is not IResourceWithEndpoints resourceWithEndpoints || builder.Resource is not IResourceWithEnvironment) 2002public static IResourceBuilder<IResourceWithEndpoints> WithEndpointProxySupport(this IResourceBuilder<IResourceWithEndpoints> builder, bool proxyEnabled) 2007internal static IResourceBuilder<T> SetEndpointProxySupport<T>(IResourceBuilder<T> builder, bool proxyEnabled) where T : IResourceWithEndpoints 2036public 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 2061public 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 2086public 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 2109public static IResourceBuilder<T> WithHttpEndpoint<T>(this IResourceBuilder<T> builder, int? port, int? targetPort, [EndpointName] string? name, string? env, bool isProxied) where T : IResourceWithEndpoints 2134public 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 2157public static IResourceBuilder<T> WithHttpsEndpoint<T>(this IResourceBuilder<T> builder, int? port, int? targetPort, [EndpointName] string? name, string? env, bool isProxied) where T : IResourceWithEndpoints 2170public static IResourceBuilder<T> WithExternalHttpEndpoints<T>(this IResourceBuilder<T> builder) where T : IResourceWithEndpoints 2201public static EndpointReference GetEndpoint<T>(this IResourceBuilder<T> builder, [EndpointName] string name, NetworkIdentifier contextNetworkId) where T : IResourceWithEndpoints 2218public static EndpointReference GetEndpoint<T>(this IResourceBuilder<T> builder, [EndpointName] string name) where T : IResourceWithEndpoints 2233public static IResourceBuilder<T> AsHttp2Service<T>(this IResourceBuilder<T> builder) where T : IResourceWithEndpoints 2502if (builder.Resource is IResourceWithEndpoints resource) 2550where T : IResourceWithEndpoints 3104/// <typeparam name="T">A resource type that implements <see cref="IResourceWithEndpoints" />.</typeparam> 3133public static IResourceBuilder<T> WithHttpHealthCheck<T>(this IResourceBuilder<T> builder, string? path = null, int? statusCode = null, string? endpointName = null) where T : IResourceWithEndpoints 3147/// <typeparam name="T">A resource type that implements <see cref="IResourceWithEndpoints" />.</typeparam> 3175public static IResourceBuilder<T> WithHttpHealthCheck<T>(this IResourceBuilder<T> builder, Func<EndpointReference>? endpointSelector, string? path = null, int? statusCode = null) where T : IResourceWithEndpoints 3227/// <typeparam name="T">A resource type that implements <see cref="IResourceWithEndpoints" />.</typeparam> 3254public static IResourceBuilder<T> WithHttpsHealthCheck<T>(this IResourceBuilder<T> builder, string? path = null, int? statusCode = null, string? endpointName = null) where T : IResourceWithEndpoints 3973where TResource : IResourceWithEndpoints 4050where TResource : IResourceWithEndpoints 4158where TResource : IResourceWithEndpoints 4776where TResource : IResourceWithEndpoints 4802where TResource : IResourceWithEndpoints 5501where T : IResourceWithEndpoints, IResourceWithProbes 5519where T : IResourceWithEndpoints, IResourceWithProbes 5559where T : IResourceWithEndpoints, IResourceWithProbes
Aspire.Hosting.Azure.AppContainers (2)
AzureContainerAppEnvironmentResource.cs (1)
397var 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.EntraId (1)
src\Shared\ComputeEnvironmentEndpointResolver.cs (1)
84var owningResource = endpointReferenceExpression.Endpoint.Resource;
Aspire.Hosting.Azure.FrontDoor (7)
AzureFrontDoorExtensions.cs (4)
88var originResource = originAnnotation.Resource; 203IResourceBuilder<T> resource) where T : IComputeResource, IResourceWithEndpoints 232private static EndpointReference GetOriginEndpoint(IResourceWithEndpoints resource) 249private 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.Azure.Sandboxes (2)
AzureSandboxGroupResource.cs (1)
304var resource = endpointReference.Resource;
src\Shared\ComputeEnvironmentEndpointResolver.cs (1)
84var owningResource = endpointReferenceExpression.Endpoint.Resource;
Aspire.Hosting.Blazor (5)
BlazorGatewayExtensions.cs (2)
833private static EndpointReference? GetEndpointIfDefined(IResourceWithEndpoints resource, string endpointName) 909&& resource is IResourceWithEndpoints dashboardResource)
BlazorHostedExtensions.cs (1)
274private 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)
267where TResource : IResourceWithEndpoints 291where TResource : IResourceWithEndpoints 414where TResource : IResourceWithEndpoints 498IResourceBuilder<IResourceWithEndpoints> targetResource, IResourceBuilder<DevTunnelResource> tunnelResource) 569var targetResource = targetEndpoint.Resource;
Aspire.Hosting.Docker (1)
DockerComposeEnvironmentResource.cs (1)
263var resource = endpointReference.Resource;
Aspire.Hosting.Docker.Tests (2)
DockerComposePublisherTests.cs (2)
66var resource = (IResourceWithEndpoints)context.Resource;
Aspire.Hosting.Foundry (17)
HostedAgent\HostedAgentBuilderExtension.cs (15)
51where T : IResourceWithEndpoints, IResourceWithEnvironment, IComputeResource 68where T : IResourceWithEndpoints, IResourceWithEnvironment, IComputeResource 92where T : IResourceWithEndpoints, IResourceWithEnvironment, IComputeResource 112where T : IResourceWithEndpoints, IResourceWithEnvironment, IComputeResource 139where T : IResourceWithEndpoints, IResourceWithEnvironment, IComputeResource 171where T : IResourceWithEndpoints, IResourceWithEnvironment, IComputeResource 202where T : IResourceWithEndpoints, IResourceWithEnvironment, IComputeResource 213where T : IResourceWithEndpoints, IResourceWithEnvironment, IComputeResource 253where T : IResourceWithEndpoints, IResourceWithEnvironment, IComputeResource 262where T : IResourceWithEndpoints, IResourceWithEnvironment, IComputeResource 276where T : IResourceWithEndpoints, IResourceWithEnvironment, IComputeResource 289where T : IResourceWithEndpoints, IResourceWithEnvironment, IComputeResource 441where T : IResourceWithEndpoints, IResourceWithEnvironment, IComputeResource 567where T : IResourceWithEndpoints, IResourceWithEnvironment, IComputeResource 569if (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)
146Endpoint = ((IResourceWithEndpoints)resource).GetEndpoint("http")
Aspire.Hosting.JavaScript (1)
DenoHostingExtensions.cs (1)
1410if (resource is not IResourceWithEndpoints endpointsResource)
Aspire.Hosting.Kubernetes (4)
KubernetesEnvironmentResource.cs (3)
403var resource = endpointReference.Resource; 932var targetResource = endpointRef.Resource; 1278var targetResource = endpointRef.Resource;
src\Shared\ComputeEnvironmentEndpointResolver.cs (1)
84var owningResource = endpointReferenceExpression.Endpoint.Resource;
Aspire.Hosting.Maui (1)
MauiOtlpExtensions.cs (1)
268if (!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.PostgreSQL (1)
PostgresBuilderExtensions.cs (1)
469where T : IResourceWithEndpoints
Aspire.Hosting.Python (1)
PythonAppResourceBuilderExtensions.cs (1)
287var endpoint = ((IResourceWithEndpoints)c.Resource).GetEndpoint("http");
Aspire.Hosting.Radius (1)
RadiusEnvironmentResource.cs (1)
131var resource = endpointReference.Resource;
Aspire.Hosting.Radius.Tests (1)
Publishing\BackingResourceContractTests.cs (1)
222private static (RadiusEnvironmentResource Environment, IResourceBuilder<IResourceWithEndpoints> Cache) CreateRadiusOwnedRedis()
Aspire.Hosting.Redis (1)
RedisBuilderExtensions.cs (1)
462where T : IResourceWithEndpoints
Aspire.Hosting.RemoteHost.Tests (1)
CapabilityDispatcherTests.cs (1)
2442public 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)
276var dashboardResource = (IResourceWithEndpoints)model.Resources.Single(r => string.Equals(r.Name, KnownResourceNames.AspireDashboard, StringComparisons.ResourceName));
Dashboard\DashboardResourceTests.cs (2)
852new() { Url = "http://localhost:5003", Endpoint = ((IResourceWithEndpoints)dashboard).GetEndpoint("http") }, 853new() { Url = "https://localhost:5005", Endpoint = ((IResourceWithEndpoints)dashboard).GetEndpoint("https") }
Dcp\DcpExecutorTests.cs (3)
4478var endpoint = ((IResourceWithEndpoints)@event.Resource).GetEndpoint("NoPortTargetPortSet"); 9645async ValueTask AssertTunneledPort(IResourceWithEndpoints resource, string endpointName, int hostPort) 9689async 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)
705context.Args.Add(((IResourceWithEndpoints)context.Resource).GetEndpoint("ep"));
src\Shared\ComputeEnvironmentEndpointResolver.cs (1)
84var owningResource = endpointReferenceExpression.Endpoint.Resource;