ResourceExtensions.GetEndpoint(IResourceWithEndpoints, String) Method

Definition

Gets an endpoint reference for the specified endpoint name.

C#
public static Aspire.Hosting.ApplicationModel.EndpointReference GetEndpoint(this Aspire.Hosting.ApplicationModel.IResourceWithEndpoints resource, string endpointName);

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

Proizvod Verzije
.NET Aspire 8.0.0, 9.0.0, 9.1.0