1 interface inheriting from IResourceWithEndpoints
Aspire.Hosting (1)
ApplicationModel\IResourceWithServiceDiscovery.cs (1)
11public interface IResourceWithServiceDiscovery : IResourceWithEndpoints
1 implementation of IResourceWithEndpoints
Aspire.Hosting.Tests (1)
ExpressionResolverTests.cs (1)
211sealed class TestExpressionResolverResource : ContainerResource, IResourceWithEndpoints, IResourceWithConnectionString
51 references to IResourceWithEndpoints
Aspire.Hosting (36)
ApplicationModel\ContainerResource.cs (1)
14: Resource(name), IResourceWithEnvironment, IResourceWithArgs, IResourceWithEndpoints, IResourceWithWaitSupport,
ApplicationModel\EndpointReference.cs (3)
23public IResourceWithEndpoints Resource { get; } 119public EndpointReference(IResourceWithEndpoints owner, EndpointAnnotation endpoint) 134public EndpointReference(IResourceWithEndpoints owner, string endpointName)
ApplicationModel\EndpointReferenceAnnotation.cs (2)
9internal sealed class EndpointReferenceAnnotation(IResourceWithEndpoints resource) : IResourceAnnotation 11public IResourceWithEndpoints Resource { get; } = resource ?? throw new ArgumentNullException(nameof(resource));
ApplicationModel\ExecutableResource.cs (1)
24: Resource(name), IResourceWithEnvironment, IResourceWithArgs, IResourceWithEndpoints, IResourceWithWaitSupport,
ApplicationModel\ResourceExtensions.cs (4)
502/// <param name="resource">The <see cref="IResourceWithEndpoints"/> which contains <see cref="EndpointAnnotation"/> annotations.</param> 504public static IEnumerable<EndpointReference> GetEndpoints(this IResourceWithEndpoints resource) 517/// <param name="resource">The <see cref="IResourceWithEndpoints"/> which contains <see cref="EndpointAnnotation"/> annotations.</param> 521public static EndpointReference GetEndpoint(this IResourceWithEndpoints resource, string endpointName)
ApplicationModel\ResourceUrlsCallbackContext.cs (2)
25/// If <see cref="Resource"/> does not implement <see cref="IResourceWithEndpoints"/> then returns <c>null</c>. 32IResourceWithEndpoints resourceWithEndpoints => resourceWithEndpoints.GetEndpoint(name),
Devcontainers\DevcontainerPortForwardingLifecycleHook.cs (1)
37if (resource is not IResourceWithEndpoints resourceWithEndpoints)
Orchestrator\ApplicationOrchestrator.cs (1)
187if (resource.TryGetEndpoints(out var endpoints) && resource is IResourceWithEndpoints resourceWithEndpoints)
ResourceBuilderExtensions.cs (21)
459private static void ApplyEndpoints<T>(this IResourceBuilder<T> builder, IResourceWithEndpoints resourceWithEndpoints, string? endpointName = null) 524public static IResourceBuilder<T> WithEndpoint<T>(this IResourceBuilder<T> builder, [EndpointName] string endpointName, Action<EndpointAnnotation> callback, bool createIfNotExists = true) where T : IResourceWithEndpoints 571public 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 590if (env is not null && builder.Resource is IResourceWithEndpoints resourceWithEndpoints and IResourceWithEnvironment) 620public 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 638public 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 658public 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 671public static IResourceBuilder<T> WithExternalHttpEndpoints<T>(this IResourceBuilder<T> builder) where T : IResourceWithEndpoints 699public static EndpointReference GetEndpoint<T>(this IResourceBuilder<T> builder, [EndpointName] string name) where T : IResourceWithEndpoints 712public static IResourceBuilder<T> AsHttp2Service<T>(this IResourceBuilder<T> builder) where T : IResourceWithEndpoints 955where T : IResourceWithEndpoints 1231/// <typeparam name="T">A resource type that implements <see cref="IResourceWithEndpoints" />.</typeparam> 1257public static IResourceBuilder<T> WithHttpHealthCheck<T>(this IResourceBuilder<T> builder, string? path = null, int? statusCode = null, string? endpointName = null) where T : IResourceWithEndpoints 1271/// <typeparam name="T">A resource type that implements <see cref="IResourceWithEndpoints" />.</typeparam> 1297public static IResourceBuilder<T> WithHttpHealthCheck<T>(this IResourceBuilder<T> builder, Func<EndpointReference>? endpointSelector, string? path = null, int? statusCode = null) where T : IResourceWithEndpoints 1354/// <typeparam name="T">A resource type that implements <see cref="IResourceWithEndpoints" />.</typeparam> 1381public static IResourceBuilder<T> WithHttpsHealthCheck<T>(this IResourceBuilder<T> builder, string? path = null, int? statusCode = null, string? endpointName = null) where T : IResourceWithEndpoints 1576where TResource : IResourceWithEndpoints 1649where TResource : IResourceWithEndpoints 1752where TResource : IResourceWithEndpoints 1778where TResource : 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.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.Docker.Tests (2)
DockerComposePublisherTests.cs (2)
42var resource = (IResourceWithEndpoints)context.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.Testing (2)
DistributedApplicationHostingTestingExtensions.cs (2)
94if (resource is not IResourceWithEndpoints resourceWithEndpoints) 126static EndpointReference? GetEndpointOrDefault(IResourceWithEndpoints resourceWithEndpoints, string endpointName)
Aspire.Hosting.Tests (3)
DistributedApplicationTests.cs (1)
352if (item is IResourceWithEndpoints resourceWithEndpoints)
ResourceNotificationTests.cs (1)
405IResourceWithEndpoints
WithHttpCommandTests.cs (1)
525private sealed class CustomResource(string name) : Resource(name), IResourceWithEndpoints, IResourceWithWaitSupport