ResourceUrlsCallbackContext.GetEndpoint 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.
Overloads
| GetEndpoint(String) |
Gets an endpoint reference from Resource for the specified endpoint name. |
| GetEndpoint(String, NetworkIdentifier) |
Gets an endpoint reference from Resource for the specified endpoint name. |
GetEndpoint(String)
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)
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.