1 interface inheriting from IResourceWithEndpoints
Aspire.Hosting (1)
ApplicationModel\IResourceWithServiceDiscovery.cs (1)
11
public interface IResourceWithServiceDiscovery :
IResourceWithEndpoints
1 implementation of IResourceWithEndpoints
Aspire.Hosting.Tests (1)
ExpressionResolverTests.cs (1)
121
sealed class TestExpressionResolverResource : ContainerResource,
IResourceWithEndpoints
, IResourceWithConnectionString
41 references to IResourceWithEndpoints
Aspire.Hosting (27)
ApplicationModel\ContainerResource.cs (1)
11
public class ContainerResource(string name, string? entrypoint = null) : Resource(name), IResourceWithEnvironment, IResourceWithArgs,
IResourceWithEndpoints
, IResourceWithWaitSupport
ApplicationModel\EndpointReference.cs (3)
23
public
IResourceWithEndpoints
Resource { get; }
118
public EndpointReference(
IResourceWithEndpoints
owner, EndpointAnnotation endpoint)
133
public EndpointReference(
IResourceWithEndpoints
owner, string endpointName)
ApplicationModel\EndpointReferenceAnnotation.cs (2)
9
internal sealed class EndpointReferenceAnnotation(
IResourceWithEndpoints
resource) : IResourceAnnotation
11
public
IResourceWithEndpoints
Resource { get; } = resource ?? throw new ArgumentNullException(nameof(resource));
ApplicationModel\ExecutableResource.cs (1)
12
public class ExecutableResource(string name, string command, string workingDirectory) : Resource(name), IResourceWithEnvironment, IResourceWithArgs,
IResourceWithEndpoints
, IResourceWithWaitSupport
ApplicationModel\ResourceExtensions.cs (4)
247
/// <param name="resource">The <see cref="
IResourceWithEndpoints
"/> which contains <see cref="EndpointAnnotation"/> annotations.</param>
249
public static IEnumerable<EndpointReference> GetEndpoints(this
IResourceWithEndpoints
resource)
262
/// <param name="resource">The <see cref="
IResourceWithEndpoints
"/> which contains <see cref="EndpointAnnotation"/> annotations.</param>
266
public static EndpointReference GetEndpoint(this
IResourceWithEndpoints
resource, string endpointName)
Dcp\ApplicationExecutor.cs (1)
754
appModelResource is
IResourceWithEndpoints
resourceWithEndpoints &&
Devcontainers\DevcontainerPortForwardingLifecycleHook.cs (1)
46
if (resource is not
IResourceWithEndpoints
resourceWithEndpoints)
ResourceBuilderExtensions.cs (14)
428
private static void ApplyEndpoints<T>(this IResourceBuilder<T> builder,
IResourceWithEndpoints
resourceWithEndpoints, string? endpointName = null)
471
public static IResourceBuilder<T> WithEndpoint<T>(this IResourceBuilder<T> builder, [EndpointName] string endpointName, Action<EndpointAnnotation> callback, bool createIfNotExists = true) where T :
IResourceWithEndpoints
517
public 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) where T :
IResourceWithEndpoints
536
if (env is not null && builder.Resource is
IResourceWithEndpoints
resourceWithEndpoints and IResourceWithEnvironment)
564
public 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
584
public 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
597
public static IResourceBuilder<T> WithExternalHttpEndpoints<T>(this IResourceBuilder<T> builder) where T :
IResourceWithEndpoints
625
public static EndpointReference GetEndpoint<T>(this IResourceBuilder<T> builder, [EndpointName] string name) where T :
IResourceWithEndpoints
638
public static IResourceBuilder<T> AsHttp2Service<T>(this IResourceBuilder<T> builder) where T :
IResourceWithEndpoints
814
/// <typeparam name="T">A resource type that implements <see cref="
IResourceWithEndpoints
" />.</typeparam>
840
public static IResourceBuilder<T> WithHttpHealthCheck<T>(this IResourceBuilder<T> builder, string? path = null, int? statusCode = null, string? endpointName = null) where T :
IResourceWithEndpoints
853
internal static IResourceBuilder<T> WithHttpHealthCheckInternal<T>(this IResourceBuilder<T> builder, string desiredScheme, string endpointName, string? path = null, int? statusCode = null) where T :
IResourceWithEndpoints
909
/// <typeparam name="T">A resource type that implements <see cref="
IResourceWithEndpoints
" />.</typeparam>
935
public static IResourceBuilder<T> WithHttpsHealthCheck<T>(this IResourceBuilder<T> builder, string? path = null, int? statusCode = null, string? endpointName = null) where T :
IResourceWithEndpoints
Aspire.Hosting.Azure.CosmosDB (1)
AzureCosmosDBResource.cs (1)
15
IResourceWithEndpoints
Aspire.Hosting.Azure.EventHubs (1)
AzureEventHubsResource.cs (1)
16
IResourceWithEndpoints
,
Aspire.Hosting.Azure.Storage (1)
AzureStorageResource.cs (1)
15
IResourceWithEndpoints
,
Aspire.Hosting.Dapr (1)
DaprDistributedApplicationLifecycleHook.cs (1)
286
if (resource is
IResourceWithEndpoints
resourceWithEndpoints)
Aspire.Hosting.Orleans (3)
OrleansServiceClientExtensions.cs (1)
24
where T : IResourceWithEnvironment,
IResourceWithEndpoints
OrleansServiceExtensions.cs (2)
350
where T : IResourceWithEnvironment,
IResourceWithEndpoints
359
where T : IResourceWithEnvironment,
IResourceWithEndpoints
Aspire.Hosting.Testing (2)
DistributedApplicationHostingTestingExtensions.cs (2)
82
if (resource is not
IResourceWithEndpoints
resourceWithEndpoints)
114
static EndpointReference? GetEndpointOrDefault(
IResourceWithEndpoints
resourceWithEndpoints, string endpointName)
Aspire.Hosting.Tests (2)
DistributedApplicationTests.cs (1)
162
if (item is
IResourceWithEndpoints
resourceWithEndpoints)
ResourceNotificationTests.cs (1)
387
IResourceWithEndpoints
Stress.AppHost (3)
ResourceBuilderExtensions.cs (3)
17
where TResource :
IResourceWithEndpoints
29
where TResource :
IResourceWithEndpoints
39
where TResource :
IResourceWithEndpoints