ResourceExtensions.GetEndpoint(IResourceWithEndpoints, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.