Skip to content
Docs Try Aspire

ResourceUrlsCallbackContext Methods

Class Methods 2 members
Represents a callback context for resource URLs.
Gets an endpoint reference from ResourceUrlsCallbackContext.Resource for the specified endpoint name. If ResourceUrlsCallbackContext.Resource does not implement IResourceWithEndpoints then returns null.
public class ResourceUrlsCallbackContext
{
public EndpointReference? GetEndpoint(
string name)
{
// ...
}
}
name string The name of the endpoint.
GetEndpoint(string, NetworkIdentifier) Section titled GetEndpoint(string, NetworkIdentifier) nullable EndpointReference?
Gets an endpoint reference from ResourceUrlsCallbackContext.Resource for the specified endpoint name. If ResourceUrlsCallbackContext.Resource does not implement IResourceWithEndpoints then returns null.
public class ResourceUrlsCallbackContext
{
public EndpointReference? GetEndpoint(
string name,
NetworkIdentifier contextNetworkID)
{
// ...
}
}
name string The name of the endpoint.
contextNetworkID NetworkIdentifier The identifier of the network that serves as the context for the endpoint reference.