Share via


ResourceUrlsCallbackContext.GetEndpoint Method

Definition

Overloads

GetEndpoint(String)

Gets an endpoint reference from Resource for the specified endpoint name.
If Resource does not implement IResourceWithEndpoints then returns null.

GetEndpoint(String, NetworkIdentifier)

Gets an endpoint reference from Resource for the specified endpoint name.
If Resource does not implement IResourceWithEndpoints then returns null.

GetEndpoint(String)

Source:
ResourceUrlsCallbackContext.cs
Source:
ResourceUrlsCallbackContext.cs
Source:
ResourceUrlsCallbackContext.cs
Source:
ResourceUrlsCallbackContext.cs

Gets an endpoint reference from Resource for the specified endpoint name.
If Resource does not implement IResourceWithEndpoints then returns null.

public Aspire.Hosting.ApplicationModel.EndpointReference? GetEndpoint(string name);
member this.GetEndpoint : string -> Aspire.Hosting.ApplicationModel.EndpointReference
Public Function GetEndpoint (name As String) As EndpointReference

Parameters

name
String

The name of the endpoint.

Returns

Applies to

GetEndpoint(String, NetworkIdentifier)

Source:
ResourceUrlsCallbackContext.cs

Gets an endpoint reference from Resource for the specified endpoint name.
If Resource does not implement IResourceWithEndpoints then returns null.

public Aspire.Hosting.ApplicationModel.EndpointReference? GetEndpoint(string name, Aspire.Hosting.ApplicationModel.NetworkIdentifier contextNetworkID);
member this.GetEndpoint : string * Aspire.Hosting.ApplicationModel.NetworkIdentifier -> Aspire.Hosting.ApplicationModel.EndpointReference
Public Function GetEndpoint (name As String, contextNetworkID As NetworkIdentifier) As EndpointReference

Parameters

name
String

The name of the endpoint.

contextNetworkID
NetworkIdentifier

The identifier of the network that serves as the context for the endpoint reference.

Returns

Applies to