Skip to content
DocsTry Aspire
DocsTry

ResourceUrlsCallbackContext Methods

ClassMethods2 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)
{
// ...
}
}
namestringThe name of the endpoint.
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)
{
// ...
}
}
namestringThe name of the endpoint.
contextNetworkIDNetworkIdentifierThe identifier of the network that serves as the context for the endpoint reference.