37 instantiations of EndpointReference
Aspire.Hosting (4)
Aspire.Hosting.Azure.AppConfiguration (1)
Aspire.Hosting.Azure.CosmosDB (1)
Aspire.Hosting.Azure.EventHubs (1)
Aspire.Hosting.Azure.ServiceBus (1)
Aspire.Hosting.Azure.SignalR (1)
Aspire.Hosting.Azure.Storage (3)
Aspire.Hosting.Azure.Tests (1)
Aspire.Hosting.DevTunnels (1)
Aspire.Hosting.Docker (2)
Aspire.Hosting.Garnet (1)
Aspire.Hosting.Kafka (2)
Aspire.Hosting.Milvus (1)
Aspire.Hosting.MongoDB (1)
Aspire.Hosting.MySql (1)
Aspire.Hosting.Nats (1)
Aspire.Hosting.Oracle (1)
Aspire.Hosting.PostgreSQL (2)
Aspire.Hosting.Qdrant (2)
Aspire.Hosting.RabbitMQ (1)
Aspire.Hosting.Redis (2)
Aspire.Hosting.Seq (1)
Aspire.Hosting.SqlServer (1)
Aspire.Hosting.Tests (3)
Aspire.Hosting.Valkey (1)
179 references to EndpointReference
Aspire.Hosting (52)
ApplicationModel\HttpCommandContext.cs (4)
9/// or <see cref="ResourceBuilderExtensions.WithHttpCommand{TResource}(IResourceBuilder{TResource}, string, string, Func{EndpointReference}?, string?, HttpCommandOptions?)"/>.
26public required EndpointReference Endpoint { get; init; }
47/// or <see cref="ResourceBuilderExtensions.WithHttpCommand{TResource}(IResourceBuilder{TResource}, string, string, Func{EndpointReference}?, string?, HttpCommandOptions?)"/>.
64public required EndpointReference Endpoint { get; init; }
ResourceBuilderExtensions.cs (23)
144public static IResourceBuilder<T> WithEnvironment<T>(this IResourceBuilder<T> builder, string name, EndpointReference endpointReference)
414foreach (var endpoint in annotation.Resource.GetEndpoints())
568public static IResourceBuilder<TDestination> WithReference<TDestination>(this IResourceBuilder<TDestination> builder, EndpointReference endpointReference)
713var endpointReference = new EndpointReference(resourceWithEndpoints, annotation);
811/// Gets an <see cref="EndpointReference"/> by name from the resource. These endpoints are declared either using <see cref="WithEndpoint{T}(IResourceBuilder{T}, int?, int?, string?, string?, string?, bool, bool?, ProtocolType?)"/> or by launch settings (for project resources).
812/// The <see cref="EndpointReference"/> can be used to resolve the address of the endpoint in <see cref="WithEnvironment{T}(IResourceBuilder{T}, Action{EnvironmentCallbackContext})"/>.
817/// <returns>An <see cref="EndpointReference"/> that can be used to resolve the address of the endpoint after resource allocation has occurred.</returns>
818public static EndpointReference GetEndpoint<T>(this IResourceBuilder<T> builder, [EndpointName] string name) where T : IResourceWithEndpoints
1014var endpoint = url.ValueProviders.OfType<EndpointReference>().FirstOrDefault();
1034/// To add another URL for an endpoint, use <see cref="WithUrlForEndpoint{T}(IResourceBuilder{T}, string, Func{EndpointReference, ResourceUrlAnnotation})"/>.
1107public static IResourceBuilder<T> WithUrlForEndpoint<T>(this IResourceBuilder<T> builder, string endpointName, Func<EndpointReference, ResourceUrlAnnotation> callback)
1112var endpoint = builder.GetEndpoint(endpointName);
1554public static IResourceBuilder<T> WithHttpHealthCheck<T>(this IResourceBuilder<T> builder, Func<EndpointReference>? endpointSelector, string? path = null, int? statusCode = null) where T : IResourceWithEndpoints
1558var endpoint = endpointSelector()
1903Func<EndpointReference>? endpointSelector,
1910var endpoint = endpointSelector()
2008private static Func<EndpointReference> NamedEndpointSelector<TResource>(IResourceBuilder<TResource> builder, string[] endpointNames, string errorDisplayNoun)
2014EndpointReference? matchingEndpoint = null;
2034private static Func<EndpointReference> DefaultEndpointSelector<TResource>(IResourceBuilder<TResource> builder)
2040EndpointReference? matchingEndpoint = null;
2411public static IResourceBuilder<T> WithHttpProbe<T>(this IResourceBuilder<T> builder, ProbeType type, Func<EndpointReference>? endpointSelector, string? path = null, int? initialDelaySeconds = null, int? periodSeconds = null, int? timeoutSeconds = null, int? failureThreshold = null, int? successThreshold = null)
2416var endpoint = endpointSelector() ?? throw new DistributedApplicationException($"Could not create HTTP probe for resource '{builder.Resource.Name}' as the endpoint selector returned null.");
Aspire.Hosting.Azure (6)
Aspire.Hosting.Azure.AppConfiguration (1)
Aspire.Hosting.Azure.AppContainers (1)
Aspire.Hosting.Azure.AppService (1)
Aspire.Hosting.Azure.CosmosDB (2)
Aspire.Hosting.Azure.EventHubs (3)
Aspire.Hosting.Azure.Functions (2)
Aspire.Hosting.Azure.Kusto (1)
Aspire.Hosting.Azure.ServiceBus (2)
Aspire.Hosting.Azure.SignalR (1)
Aspire.Hosting.Azure.Storage (7)
Aspire.Hosting.Azure.Tests (13)
Aspire.Hosting.DevTunnels (9)
Aspire.Hosting.Docker (6)
Aspire.Hosting.Garnet (2)
Aspire.Hosting.Kafka (8)
Aspire.Hosting.Kubernetes (1)
Aspire.Hosting.Milvus (2)
Aspire.Hosting.MongoDB (2)
Aspire.Hosting.MySql (3)
Aspire.Hosting.Nats (2)
Aspire.Hosting.Oracle (1)
Aspire.Hosting.PostgreSQL (4)
Aspire.Hosting.Qdrant (4)
Aspire.Hosting.RabbitMQ (1)
Aspire.Hosting.Redis (4)
Aspire.Hosting.Redis.Tests (2)
Aspire.Hosting.Seq (2)
Aspire.Hosting.SqlServer (1)
Aspire.Hosting.Testing (3)
Aspire.Hosting.Tests (14)
Aspire.Hosting.Valkey (2)
Aspire.Hosting.Yarp (7)
Aspire.Hosting.Yarp.Tests (6)
AspireWithNode.AppHost (1)