ResourceUrlsCallbackContext
Class net10.0
Represents a callback context for resource URLs.
namespace Aspire.Hosting.ApplicationModel;
public class ResourceUrlsCallbackContext{ // ...} 8 members
Constructors1
Section titled ConstructorsProperties5
Section titled PropertiesCancellationTokengetCancellationToken Gets the
ResourceUrlsCallbackContext.CancellationToken associated with the callback context. ExecutionContextget Gets the execution context associated with this invocation of the AppHost.
Loggerget; setILogger A logger instance to use for logging.
Resourceget Gets the resource this the URLs are associated with.
Urlsget Gets the URLs associated with the callback context.
Methods2
Section titled MethodsGetEndpoint(string) Gets an endpoint reference from
ResourceUrlsCallbackContext.Resource for the specified endpoint name. If ResourceUrlsCallbackContext.Resource does not implement IResourceWithEndpoints then returns null. GetEndpoint(string, NetworkIdentifier) Gets an endpoint reference from
ResourceUrlsCallbackContext.Resource for the specified endpoint name. If ResourceUrlsCallbackContext.Resource does not implement IResourceWithEndpoints then returns null.