Share via


ResourceExtensions.GetEndpoint Method

Definition

Overloads

GetEndpoint(IResourceWithEndpoints, String)

Gets an endpoint reference for the specified endpoint name.

GetEndpoint(IResourceWithEndpoints, String, NetworkIdentifier)

Gets an endpoint reference for the specified endpoint name.

GetEndpoint(IResourceWithEndpoints, String)

Source:
ResourceExtensions.cs
Source:
ResourceExtensions.cs
Source:
ResourceExtensions.cs
Source:
ResourceExtensions.cs
Source:
ResourceExtensions.cs
Source:
ResourceExtensions.cs
Source:
ResourceExtensions.cs

Gets an endpoint reference for the specified endpoint name.

public static Aspire.Hosting.ApplicationModel.EndpointReference GetEndpoint(this Aspire.Hosting.ApplicationModel.IResourceWithEndpoints resource, string endpointName);
static member GetEndpoint : Aspire.Hosting.ApplicationModel.IResourceWithEndpoints * string -> Aspire.Hosting.ApplicationModel.EndpointReference
<Extension()>
Public Function GetEndpoint (resource As IResourceWithEndpoints, endpointName As String) As EndpointReference

Parameters

resource
IResourceWithEndpoints

The IResourceWithEndpoints which contains EndpointAnnotation annotations.

endpointName
String

The name of the endpoint.

Returns

An EndpointReferenceobject providing resolvable reference for the specified endpoint.

Applies to

GetEndpoint(IResourceWithEndpoints, String, NetworkIdentifier)

Source:
ResourceExtensions.cs

Gets an endpoint reference for the specified endpoint name.

public static Aspire.Hosting.ApplicationModel.EndpointReference GetEndpoint(this Aspire.Hosting.ApplicationModel.IResourceWithEndpoints resource, string endpointName, Aspire.Hosting.ApplicationModel.NetworkIdentifier contextNetworkID);
static member GetEndpoint : Aspire.Hosting.ApplicationModel.IResourceWithEndpoints * string * Aspire.Hosting.ApplicationModel.NetworkIdentifier -> Aspire.Hosting.ApplicationModel.EndpointReference
<Extension()>
Public Function GetEndpoint (resource As IResourceWithEndpoints, endpointName As String, contextNetworkID As NetworkIdentifier) As EndpointReference

Parameters

resource
IResourceWithEndpoints

The IResourceWithEndpoints which contains EndpointAnnotation annotations.

endpointName
String

The name of the endpoint.

contextNetworkID
NetworkIdentifier

The network ID of the network that provides the context for the returned EndpointReference

Returns

An EndpointReferenceobject providing resolvable reference for the specified endpoint.

Applies to