Поделиться через


ResourceUrlsCallbackContext Class

Definition

Represents a callback context for resource URLs.

public class ResourceUrlsCallbackContext
type ResourceUrlsCallbackContext = class
Public Class ResourceUrlsCallbackContext
Inheritance
ResourceUrlsCallbackContext

Constructors

ResourceUrlsCallbackContext(DistributedApplicationExecutionContext, IResource, List<ResourceUrlAnnotation>, CancellationToken)

Represents a callback context for resource URLs.

Properties

CancellationToken

Gets the CancellationToken associated with the callback context.

ExecutionContext

Gets the execution context associated with this invocation of the AppHost.

Logger

A logger instance to use for logging.

Resource

Gets the resource this the URLs are associated with.

Urls

Gets the URLs associated with the callback context.

Methods

GetEndpoint(String)

Gets an endpoint reference from Resource for the specified endpoint name.
If Resource does not implement IResourceWithEndpoints then returns null.

Applies to