DistributedApplicationFactory.GetEndpoint(String, 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 the endpoint for the specified resource.
public Uri GetEndpoint (string resourceName, string? endpointName = default);
member this.GetEndpoint : string * string -> Uri
Public Function GetEndpoint (resourceName As String, Optional endpointName As String = Nothing) As Uri
Parameters
- resourceName
- String
The resource name.
- endpointName
- String
The optional endpoint name. If none are specified, the single defined endpoint is returned.
Returns
A URI representation of the endpoint.
Exceptions
The resource was not found, no matching endpoint was found, or multiple endpoints were found.
The resource has no endpoints.