1 interface inheriting from IResourceWithEndpoints
Aspire.Hosting (1)
ApplicationModel\IResourceWithServiceDiscovery.cs (1)
11public interface IResourceWithServiceDiscovery : IResourceWithEndpoints
23 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.AIFoundry (1)
AzureAIFoundryResource.cs (1)
16AzureProvisioningResource(name, configureInfrastructure), IResourceWithEndpoints, IResourceWithConnectionString
Aspire.Hosting.Azure.AppConfiguration (1)
AzureAppConfigurationResource.cs (1)
17IResourceWithConnectionString, IResourceWithEndpoints
Aspire.Hosting.Azure.CosmosDB (1)
AzureCosmosDBResource.cs (1)
20IResourceWithEndpoints,
Aspire.Hosting.Azure.EventHubs (1)
AzureEventHubsResource.cs (1)
16: AzureProvisioningResource(name, configureInfrastructure), IResourceWithConnectionString, IResourceWithEndpoints, IResourceWithAzureFunctionsConfig
Aspire.Hosting.Azure.KeyVault (1)
AzureKeyVaultResource.cs (1)
16: AzureProvisioningResource(name, configureInfrastructure), IResourceWithEndpoints, IResourceWithConnectionString, IAzureKeyVaultResource
Aspire.Hosting.Azure.Kusto (1)
AzureKustoClusterResource.cs (1)
18public class AzureKustoClusterResource : AzureProvisioningResource, IResourceWithConnectionString, IResourceWithEndpoints
Aspire.Hosting.Azure.PostgreSQL (1)
AzurePostgresFlexibleServerResource.cs (1)
20: AzureProvisioningResource(name, configureInfrastructure), IResourceWithEndpoints, IResourceWithConnectionString
Aspire.Hosting.Azure.Redis (1)
AzureRedisCacheResource.cs (1)
19: AzureProvisioningResource(name, configureInfrastructure), IResourceWithEndpoints, IResourceWithConnectionString
Aspire.Hosting.Azure.ServiceBus (1)
AzureServiceBusResource.cs (1)
16: AzureProvisioningResource(name, configureInfrastructure), IResourceWithConnectionString, IResourceWithAzureFunctionsConfig, IResourceWithEndpoints
Aspire.Hosting.Azure.SignalR (1)
AzureSignalRResource.cs (1)
16: AzureProvisioningResource(name, configureInfrastructure), IResourceWithConnectionString, IResourceWithEndpoints
Aspire.Hosting.Azure.Storage (1)
AzureStorageResource.cs (1)
16: AzureProvisioningResource(name, configureInfrastructure), IResourceWithEndpoints, IResourceWithAzureFunctionsConfig
Aspire.Hosting.Maui (1)
Otlp\OtlpLoopbackResource.cs (1)
17internal sealed class OtlpLoopbackResource : Resource, IResourceWithEndpoints
Aspire.Hosting.Tests (8)
EndpointReferenceTests.cs (1)
288private sealed class TestResource(string name) : Resource(name), IResourceWithEndpoints
ExpressionResolverTests.cs (2)
297sealed class TestExpressionResolverResource : ContainerResource, IResourceWithEndpoints, IResourceWithConnectionString 329public sealed class TestHostResource : Resource, IResourceWithEndpoints
ResourceCommandServiceTests.cs (1)
323private sealed class CustomResource(string name) : Resource(name), IResourceWithEndpoints, IResourceWithWaitSupport
ResourceNotificationTests.cs (1)
681IResourceWithEndpoints
ResourceWithProbeTests.cs (1)
57private sealed class CustomResourceWithProbes(string name) : Resource(name), IResourceWithProbes, IResourceWithEndpoints
WithHttpCommandTests.cs (1)
495private sealed class CustomResource(string name) : Resource(name), IResourceWithEndpoints, IResourceWithWaitSupport
WithUrlsTests.cs (1)
995private sealed class CustomResource(string name) : Resource(name), IResourceWithEndpoints
74 references to IResourceWithEndpoints
Aspire.Hosting (51)
ApplicationModel\EndpointReference.cs (5)
28public IResourceWithEndpoints Resource { get; } 197public EndpointReference(IResourceWithEndpoints owner, EndpointAnnotation endpoint, NetworkIdentifier? contextNetworkID) 213public EndpointReference(IResourceWithEndpoints owner, EndpointAnnotation endpoint): this(owner, endpoint, null) 229public EndpointReference(IResourceWithEndpoints owner, string endpointName, NetworkIdentifier? contextNetworkID = null) 244public EndpointReference(IResourceWithEndpoints owner, string endpointName): this(owner, endpointName, null)
ApplicationModel\EndpointReferenceAnnotation.cs (2)
9internal sealed class EndpointReferenceAnnotation(IResourceWithEndpoints resource) : IResourceAnnotation 11public IResourceWithEndpoints Resource { get; } = resource ?? throw new ArgumentNullException(nameof(resource));
ApplicationModel\HostUrl.cs (1)
65.OfType<IResourceWithEndpoints>()
ApplicationModel\ResourceExtensions.cs (8)
662/// <param name="resource">The <see cref="IResourceWithEndpoints"/> which contains <see cref="EndpointAnnotation"/> annotations.</param> 664public static IEnumerable<EndpointReference> GetEndpoints(this IResourceWithEndpoints resource) 677/// <param name="resource">The <see cref="IResourceWithEndpoints"/> which contains <see cref="EndpointAnnotation"/> annotations.</param> 680public static IEnumerable<EndpointReference> GetEndpoints(this IResourceWithEndpoints resource, NetworkIdentifier contextNetworkID) 693/// <param name="resource">The <see cref="IResourceWithEndpoints"/> which contains <see cref="EndpointAnnotation"/> annotations.</param> 696public static EndpointReference GetEndpoint(this IResourceWithEndpoints resource, string endpointName) 714/// <param name="resource">The <see cref="IResourceWithEndpoints"/> which contains <see cref="EndpointAnnotation"/> annotations.</param> 718public static EndpointReference GetEndpoint(this IResourceWithEndpoints resource, string endpointName, NetworkIdentifier contextNetworkID)
ApplicationModel\ResourceUrlsCallbackContext.cs (4)
25/// If <see cref="Resource"/> does not implement <see cref="IResourceWithEndpoints"/> then returns <c>null</c>. 31IResourceWithEndpoints resourceWithEndpoints => resourceWithEndpoints.GetEndpoint(name), 37/// If <see cref="Resource"/> does not implement <see cref="IResourceWithEndpoints"/> then returns <c>null</c>. 44IResourceWithEndpoints resourceWithEndpoints => resourceWithEndpoints.GetEndpoint(name, contextNetworkID),
Backchannel\AuxiliaryBackchannelRpcTarget.cs (2)
80var dashboardResource = appModel.Resources.FirstOrDefault(r => 81string.Equals(r.Name, KnownResourceNames.AspireDashboard, StringComparisons.ResourceName)) as IResourceWithEndpoints;
Dashboard\DashboardEventHandlers.cs (2)
615var dashboardResource = (IResourceWithEndpoints)context.Resource;
Dcp\DcpExecutor.cs (1)
1131var hostResourcesWithEndpoints = _model.Resources.Where(r => r is IResourceWithEndpoints && !r.IsContainer())
DistributedApplicationEventingExtensions.cs (1)
66where T : IResourceWithEndpoints
Orchestrator\ApplicationOrchestrator.cs (1)
224if (resource.TryGetEndpoints(out var endpoints) && resource is IResourceWithEndpoints resourceWithEndpoints)
ResourceBuilderExtensions.cs (24)
766private static void ApplyEndpoints<T>(this IResourceBuilder<T> builder, IResourceWithEndpoints resourceWithEndpoints, string? endpointName = null, string? name = null) 835public static IResourceBuilder<T> WithEndpoint<T>(this IResourceBuilder<T> builder, [EndpointName] string endpointName, Action<EndpointAnnotation> callback, bool createIfNotExists = true) where T : IResourceWithEndpoints 886public 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 = true, bool? isExternal = null, ProtocolType? protocol = null) where T : IResourceWithEndpoints 910if (env is not null && builder.Resource is IResourceWithEndpoints resourceWithEndpoints and IResourceWithEnvironment) 940public 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 958public static IResourceBuilder<T> WithHttpEndpoint<T>(this IResourceBuilder<T> builder, int? port = null, int? targetPort = null, [EndpointName] string? name = null, string? env = null, bool isProxied = true) where T : IResourceWithEndpoints 978public static IResourceBuilder<T> WithHttpsEndpoint<T>(this IResourceBuilder<T> builder, int? port = null, int? targetPort = null, [EndpointName] string? name = null, string? env = null, bool isProxied = true) where T : IResourceWithEndpoints 991public static IResourceBuilder<T> WithExternalHttpEndpoints<T>(this IResourceBuilder<T> builder) where T : IResourceWithEndpoints 1020public static EndpointReference GetEndpoint<T>(this IResourceBuilder<T> builder, [EndpointName] string name, NetworkIdentifier contextNetworkID) where T : IResourceWithEndpoints 1035public static EndpointReference GetEndpoint<T>(this IResourceBuilder<T> builder, [EndpointName] string name) where T : IResourceWithEndpoints 1048public static IResourceBuilder<T> AsHttp2Service<T>(this IResourceBuilder<T> builder) where T : IResourceWithEndpoints 1325where T : IResourceWithEndpoints 1773/// <typeparam name="T">A resource type that implements <see cref="IResourceWithEndpoints" />.</typeparam> 1799public static IResourceBuilder<T> WithHttpHealthCheck<T>(this IResourceBuilder<T> builder, string? path = null, int? statusCode = null, string? endpointName = null) where T : IResourceWithEndpoints 1813/// <typeparam name="T">A resource type that implements <see cref="IResourceWithEndpoints" />.</typeparam> 1839public static IResourceBuilder<T> WithHttpHealthCheck<T>(this IResourceBuilder<T> builder, Func<EndpointReference>? endpointSelector, string? path = null, int? statusCode = null) where T : IResourceWithEndpoints 1896/// <typeparam name="T">A resource type that implements <see cref="IResourceWithEndpoints" />.</typeparam> 1923public static IResourceBuilder<T> WithHttpsHealthCheck<T>(this IResourceBuilder<T> builder, string? path = null, int? statusCode = null, string? endpointName = null) where T : IResourceWithEndpoints 2118where TResource : IResourceWithEndpoints 2191where TResource : IResourceWithEndpoints 2603where TResource : IResourceWithEndpoints 2629where TResource : IResourceWithEndpoints 3023where T : IResourceWithEndpoints, IResourceWithProbes 3068where T : IResourceWithEndpoints, IResourceWithProbes
Aspire.Hosting.Azure.AppContainers (1)
AzureContainerAppEnvironmentResource.cs (1)
198var resource = endpointReference.Resource;
Aspire.Hosting.Azure.AppService (1)
AzureAppServiceEnvironmentResource.cs (1)
236var resource = endpointReference.Resource;
Aspire.Hosting.Containers.Tests (1)
ContainerResourceTests.cs (1)
126context.Args.Add(((IResourceWithEndpoints)context.Resource).GetEndpoint("ep"));
Aspire.Hosting.DevTunnels (5)
DevTunnelResourceBuilderExtensions.cs (5)
228where TResource : IResourceWithEndpoints 250where TResource : IResourceWithEndpoints 332where TResource : IResourceWithEndpoints 409IResourceBuilder<IResourceWithEndpoints> targetResource, IResourceBuilder<DevTunnelResource> tunnelResource) 460var targetResource = targetEndpoint.Resource;
Aspire.Hosting.Docker (1)
DockerComposeEnvironmentResource.cs (1)
195var resource = endpointReference.Resource;
Aspire.Hosting.Docker.Tests (2)
DockerComposePublisherTests.cs (2)
63var resource = (IResourceWithEndpoints)context.Resource;
Aspire.Hosting.Kubernetes (1)
KubernetesEnvironmentResource.cs (1)
109var resource = endpointReference.Resource;
Aspire.Hosting.Orleans (3)
OrleansServiceClientExtensions.cs (1)
24where T : IResourceWithEnvironment, IResourceWithEndpoints
OrleansServiceExtensions.cs (2)
350where T : IResourceWithEnvironment, IResourceWithEndpoints 359where T : IResourceWithEnvironment, IResourceWithEndpoints
Aspire.Hosting.Python (1)
PythonAppResourceBuilderExtensions.cs (1)
280var endpoint = ((IResourceWithEndpoints)c.Resource).GetEndpoint("http");
Aspire.Hosting.Testing (2)
DistributedApplicationHostingTestingExtensions.cs (2)
111if (resource is not IResourceWithEndpoints resourceWithEndpoints) 143static EndpointReference? GetEndpointOrDefault(IResourceWithEndpoints resourceWithEndpoints, string endpointName, NetworkIdentifier? networkIdentifier = default)
Aspire.Hosting.Tests (5)
Dashboard\DashboardLifecycleHookTests.cs (2)
138var dashboardResource = (IResourceWithEndpoints)model.Resources.Single(r => string.Equals(r.Name, KnownResourceNames.AspireDashboard, StringComparisons.ResourceName));
DistributedApplicationTests.cs (1)
600if (item is IResourceWithEndpoints resourceWithEndpoints)
ExecutableResourceTests.cs (1)
39context.Args.Add(((IResourceWithEndpoints)context.Resource).GetEndpoint("ep"));
ProjectResourceTests.cs (1)
593context.Args.Add(((IResourceWithEndpoints)context.Resource).GetEndpoint("ep"));