ResourceExtensions.GetEndpoint(IResourceWithEndpoints, String) Method

Definition

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 EndpointReference object representing the endpoint reference for the specified endpoint.

Applies to