1 interface inheriting from IResourceWithEndpoints
Aspire.Hosting (1)
ApplicationModel\IResourceWithServiceDiscovery.cs (1)
11public interface IResourceWithServiceDiscovery : IResourceWithEndpoints
40 implementations of IResourceWithEndpoints
Aspire.Hosting (3)
ApplicationModel\ContainerExecutableResource.cs (1)
13: Resource(name), IResourceWithEnvironment, IResourceWithArgs, IResourceWithEndpoints, IResourceWithWaitSupport
ApplicationModel\ContainerResource.cs (1)
15: 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.Blazor.Tests (1)
GatewayConfigurationBuilderTests.cs (1)
636private sealed class TestResource(string name) : Resource(name), IResourceWithEndpoints;
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)
3220internal sealed class TestEndpointResource : Resource, IResourceWithEndpoints
Aspire.Hosting.Testing.Tests (1)
TestingPublicApiTests.cs (1)
501private 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)
1697private sealed class CustomResourceWithEndpoints(string name) : Resource(name), IResourceWithEndpoints
ComputeEnvironmentEndpointResolverTests.cs (1)
163private sealed class TestComputeResource(string name) : Resource(name), IComputeResource, IResourceWithEndpoints
ComputeEnvironmentValidationTests.cs (1)
127private sealed class TestComputeResource(string name) : Resource(name), IComputeResource, IResourceWithEndpoints
ConditionalReferenceExpressionTests.cs (2)
218private sealed class TestResourceWithEndpoints(string name) : Resource(name), IResourceWithEndpoints 302private sealed class TestResourceWithEndpoints(string name) : Resource(name), IResourceWithEndpoints
Dcp\DcpExecutorTests.cs (1)
13558private sealed class TestContainerResource(string name) : Resource(name), IResourceWithEndpoints;
EndpointReferenceTests.cs (1)
719private sealed class TestResource(string name) : Resource(name), IResourceWithEndpoints
ExpressionResolverTests.cs (2)
367sealed class TestExpressionResolverResource : ContainerResource, IResourceWithEndpoints, IResourceWithConnectionString 399public sealed class TestHostResource : Resource, IResourceWithEndpoints
ResourceCommandServiceTests.cs (1)
2085private sealed class CustomResource(string name) : Resource(name), IResourceWithEndpoints, IResourceWithWaitSupport
ResourceNotificationTests.cs (1)
1879IResourceWithEndpoints
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)
1242protected 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
184 references to IResourceWithEndpoints
Aspire.Hosting (90)
ApplicationModel\EndpointReference.cs (5)
48public IResourceWithEndpoints Resource { get; } 297public EndpointReference(IResourceWithEndpoints owner, EndpointAnnotation endpoint, NetworkIdentifier? contextNetworkId) 313public EndpointReference(IResourceWithEndpoints owner, EndpointAnnotation endpoint): this(owner, endpoint, null) 329public EndpointReference(IResourceWithEndpoints owner, string endpointName, NetworkIdentifier? contextNetworkId = null) 344public 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 (2)
142foreach (var resource in model.Resources.Where(resource => !resource.IsContainer()).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) 2010foreach (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)
1139if (resource is IResourceWithEndpoints resourceWithEndpoints && 1871var resource = appModel.Resources 1872.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) 474var otlpHttp = ((IResourceWithEndpoints)context.Resource).GetEndpoint(KnownEndpointNames.OtlpHttpEndpointName, KnownNetworkIdentifiers.LocalhostNetwork); 684var 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)
136var endpointsByResource = new Dictionary<IResourceWithEndpoints, HashSet<EndpointAnnotation>>(ReferenceEqualityComparer.Instance);
DistributedApplicationEventingExtensions.cs (1)
154where T : IResourceWithEndpoints
McpServerResourceBuilderExtensions.cs (1)
52where T : IResourceWithEndpoints
Orchestrator\ApplicationOrchestrator.cs (1)
330if (resource.TryGetEndpoints(out var endpoints) && resource is IResourceWithEndpoints resourceWithEndpoints)
OtlpConfigurationExtensions.cs (1)
305if (!model.Resources.TryGetByName(KnownResourceNames.AspireDashboard, out var resource) || resource is not IResourceWithEndpoints dashboardResource)
ProjectResourceBuilderExtensions.cs (5)
531where TProjectResource : class, IResourceWithEnvironment, IResourceWithEndpoints, IResourceWithArgs 1184where T : IResourceWithEnvironment, IResourceWithEndpoints 1229where T : IResourceWithEnvironment, IResourceWithEndpoints 1239where T : IResourceWithEnvironment, IResourceWithEndpoints 1275where T : IResourceWithEnvironment, IResourceWithEndpoints
ResourceBuilderExtensions.cs (39)
1694private static void ApplyEndpoints<T>(this IResourceBuilder<T> builder, IResourceWithEndpoints resourceWithEndpoints, string? endpointName = null, string? name = null) 1765public static IResourceBuilder<T> WithEndpoint<T>(this IResourceBuilder<T> builder, [EndpointName] string endpointName, Action<EndpointAnnotation> callback, bool createIfNotExists = true) where T : IResourceWithEndpoints 1802internal static IResourceBuilder<T> WithEndpointCallback<T>(this IResourceBuilder<T> builder, [EndpointName] string endpointName, Action<EndpointUpdateContext> callback, bool createIfNotExists = true) where T : IResourceWithEndpoints 1815internal static IResourceBuilder<T> WithHttpEndpointCallback<T>(this IResourceBuilder<T> builder, Action<EndpointUpdateContext> callback, [EndpointName] string? name = null, bool createIfNotExists = true) where T : IResourceWithEndpoints 1827internal static IResourceBuilder<T> WithHttpsEndpointCallback<T>(this IResourceBuilder<T> builder, Action<EndpointUpdateContext> callback, [EndpointName] string? name = null, bool createIfNotExists = true) where T : IResourceWithEndpoints 1835private static IResourceBuilder<T> WithWellKnownEndpointCallback<T>(this IResourceBuilder<T> builder, Action<EndpointUpdateContext> callback, string endpointName, bool createIfNotExists, Action<IResourceBuilder<T>, string> createEndpoint) where T : IResourceWithEndpoints 1866public 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 1943public 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 1954private static void ConfigureEndpointEnvironmentVariable<T>(IResourceBuilder<T> builder, EndpointAnnotation endpointAnnotation, string? env) where T : IResourceWithEndpoints 1956if (env is null || builder.Resource is not IResourceWithEndpoints resourceWithEndpoints || builder.Resource is not IResourceWithEnvironment) 1994public static IResourceBuilder<IResourceWithEndpoints> WithEndpointProxySupport(this IResourceBuilder<IResourceWithEndpoints> builder, bool proxyEnabled) 1999internal static IResourceBuilder<T> SetEndpointProxySupport<T>(IResourceBuilder<T> builder, bool proxyEnabled) where T : IResourceWithEndpoints 2028public 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 2053public 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 2078public 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 2101public static IResourceBuilder<T> WithHttpEndpoint<T>(this IResourceBuilder<T> builder, int? port, int? targetPort, [EndpointName] string? name, string? env, bool isProxied) where T : IResourceWithEndpoints 2126public 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 2149public static IResourceBuilder<T> WithHttpsEndpoint<T>(this IResourceBuilder<T> builder, int? port, int? targetPort, [EndpointName] string? name, string? env, bool isProxied) where T : IResourceWithEndpoints 2162public static IResourceBuilder<T> WithExternalHttpEndpoints<T>(this IResourceBuilder<T> builder) where T : IResourceWithEndpoints 2193public static EndpointReference GetEndpoint<T>(this IResourceBuilder<T> builder, [EndpointName] string name, NetworkIdentifier contextNetworkId) where T : IResourceWithEndpoints 2210public static EndpointReference GetEndpoint<T>(this IResourceBuilder<T> builder, [EndpointName] string name) where T : IResourceWithEndpoints 2225public static IResourceBuilder<T> AsHttp2Service<T>(this IResourceBuilder<T> builder) where T : IResourceWithEndpoints 2515if (builder.Resource is IResourceWithEndpoints resource) 2563where T : IResourceWithEndpoints 3117/// <typeparam name="T">A resource type that implements <see cref="IResourceWithEndpoints" />.</typeparam> 3146public static IResourceBuilder<T> WithHttpHealthCheck<T>(this IResourceBuilder<T> builder, string? path = null, int? statusCode = null, string? endpointName = null) where T : IResourceWithEndpoints 3160/// <typeparam name="T">A resource type that implements <see cref="IResourceWithEndpoints" />.</typeparam> 3188public static IResourceBuilder<T> WithHttpHealthCheck<T>(this IResourceBuilder<T> builder, Func<EndpointReference>? endpointSelector, string? path = null, int? statusCode = null) where T : IResourceWithEndpoints 3240/// <typeparam name="T">A resource type that implements <see cref="IResourceWithEndpoints" />.</typeparam> 3267public static IResourceBuilder<T> WithHttpsHealthCheck<T>(this IResourceBuilder<T> builder, string? path = null, int? statusCode = null, string? endpointName = null) where T : IResourceWithEndpoints 3986where TResource : IResourceWithEndpoints 4063where TResource : IResourceWithEndpoints 4171where TResource : IResourceWithEndpoints 4789where TResource : IResourceWithEndpoints 4815where TResource : IResourceWithEndpoints 5543where T : IResourceWithEndpoints, IResourceWithProbes 5561where T : IResourceWithEndpoints, IResourceWithProbes 5601where T : IResourceWithEndpoints, IResourceWithProbes
Aspire.Hosting.Azure.ApiManagement (6)
AzureApiManagementExtensions.cs (5)
188where T : IComputeResource, IResourceWithEndpoints 2331if (apiResource.Target is not IResourceWithEndpoints endpointResource) 2415Debug.Assert(apiResource.Target is IResourceWithEndpoints); 2416var endpointResource = (IResourceWithEndpoints)apiResource.Target;
src\Shared\ComputeEnvironmentEndpointResolver.cs (1)
84var owningResource = endpointReferenceExpression.Endpoint.Resource;
Aspire.Hosting.Azure.AppContainers (2)
AzureContainerAppEnvironmentResource.cs (1)
409var resource = endpointReference.Resource;
src\Shared\ComputeEnvironmentEndpointResolver.cs (1)
84var owningResource = endpointReferenceExpression.Endpoint.Resource;
Aspire.Hosting.Azure.AppService (2)
AzureAppServiceEnvironmentResource.cs (1)
550var 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)
87var originResource = originAnnotation.Resource; 202IResourceBuilder<T> resource) where T : IComputeResource, IResourceWithEndpoints 231private static EndpointReference GetOriginEndpoint(IResourceWithEndpoints resource) 248private 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)
300var resource = endpointReference.Resource;
src\Shared\ComputeEnvironmentEndpointResolver.cs (1)
84var owningResource = endpointReferenceExpression.Endpoint.Resource;
Aspire.Hosting.Blazor (5)
BlazorGatewayExtensions.cs (2)
836private static EndpointReference? GetEndpointIfDefined(IResourceWithEndpoints resource, string endpointName) 912&& 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)
265where TResource : IResourceWithEndpoints 289where TResource : IResourceWithEndpoints 412where TResource : IResourceWithEndpoints 496IResourceBuilder<IResourceWithEndpoints> targetResource, IResourceBuilder<DevTunnelResource> tunnelResource) 567var targetResource = targetEndpoint.Resource;
Aspire.Hosting.DevTunnels.Tests (1)
DevTunnelResourceBuilderExtensionsTests.cs (1)
920private static IResourceBuilder<IResourceWithEndpoints> AddTargetProject(IDistributedApplicationBuilder builder, bool useDotnetProject)
Aspire.Hosting.Docker (1)
DockerComposeEnvironmentResource.cs (1)
266var resource = endpointReference.Resource;
Aspire.Hosting.Docker.Tests (2)
DockerComposePublisherTests.cs (2)
251var 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)
247var resource = endpointReference.Resource;
src\Shared\ComputeEnvironmentEndpointResolver.cs (1)
84var owningResource = endpointReferenceExpression.Endpoint.Resource;
Aspire.Hosting.Foundry.Tests (1)
HostedAgentExtensionTests.cs (1)
147Endpoint = ((IResourceWithEndpoints)resource).GetEndpoint("http")
Aspire.Hosting.JavaScript (1)
DenoHostingExtensions.cs (1)
1391if (resource is not IResourceWithEndpoints endpointsResource)
Aspire.Hosting.Kubernetes (4)
KubernetesEnvironmentResource.cs (3)
404var resource = endpointReference.Resource; 942var targetResource = endpointRef.Resource; 1288var 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)
470where T : IResourceWithEndpoints
Aspire.Hosting.Python (1)
PythonAppResourceBuilderExtensions.cs (1)
288var endpoint = ((IResourceWithEndpoints)c.Resource).GetEndpoint("http");
Aspire.Hosting.Radius (1)
RadiusEnvironmentResource.cs (1)
132var resource = endpointReference.Resource;
Aspire.Hosting.Radius.Tests (2)
Publishing\BackingResourceContractTests.cs (1)
220private static (RadiusEnvironmentResource Environment, IResourceBuilder<IResourceWithEndpoints> Cache) CreateRadiusOwnedRedis()
Publishing\RadiusDeployParametersTests.cs (1)
35IResourceBuilder<IResourceWithEndpoints> producer;
Aspire.Hosting.Redis (1)
RedisBuilderExtensions.cs (1)
468where T : IResourceWithEndpoints
Aspire.Hosting.RemoteHost.Tests (1)
CapabilityDispatcherTests.cs (1)
2676public 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 (16)
Dashboard\DashboardEventHandlersTests.cs (2)
276var dashboardResource = (IResourceWithEndpoints)model.Resources.Single(r => string.Equals(r.Name, KnownResourceNames.AspireDashboard, StringComparisons.ResourceName));
Dashboard\DashboardResourceTests.cs (2)
854new() { Url = "http://localhost:5003", Endpoint = ((IResourceWithEndpoints)dashboard).GetEndpoint("http") }, 855new() { Url = "https://localhost:5005", Endpoint = ((IResourceWithEndpoints)dashboard).GetEndpoint("https") }
Dcp\DcpExecutorTests.cs (6)
5099var endpoint = ((IResourceWithEndpoints)@event.Resource).GetEndpoint("NoPortTargetPortSet"); 10857async ValueTask AssertTunneledPort(IResourceWithEndpoints resource, string endpointName, int hostPort) 10901async ValueTask AssertEndpoint(IResourceWithEndpoints resource, string name, NetworkIdentifier network, string address, int port) 10929IResourceBuilder<IResourceWithEndpoints> dashboard = useProject 10983IResourceBuilder<IResourceWithEndpoints> dashboard = referenceKind == "all-references" 13245private static void AddDashboardTunnelEndpoints<T>(IResourceBuilder<T> dashboard, bool includeGrpc, bool includeHttp) where T : IResourceWithEndpoints
EndpointReferenceTests.cs (3)
396var source = CreateResource("caller", sourceKind); 397var destination = CreateResource("destination", destinationKind); 427static IResourceWithEndpoints CreateResource(string name, ResourceKind kind)
ExecutableResourceTests.cs (1)
40context.Args.Add(((IResourceWithEndpoints)context.Resource).GetEndpoint("ep"));
ProjectResourceTests.cs (1)
733context.Args.Add(((IResourceWithEndpoints)context.Resource).GetEndpoint("ep"));
src\Shared\ComputeEnvironmentEndpointResolver.cs (1)
84var owningResource = endpointReferenceExpression.Endpoint.Resource;