ResourceUrlsCallbackContext Constructor
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.
Represents a callback context for resource URLs.
public ResourceUrlsCallbackContext(Aspire.Hosting.DistributedApplicationExecutionContext executionContext, Aspire.Hosting.ApplicationModel.IResource resource, System.Collections.Generic.List<Aspire.Hosting.ApplicationModel.ResourceUrlAnnotation>? urls = default, System.Threading.CancellationToken cancellationToken = default);
new Aspire.Hosting.ApplicationModel.ResourceUrlsCallbackContext : Aspire.Hosting.DistributedApplicationExecutionContext * Aspire.Hosting.ApplicationModel.IResource * System.Collections.Generic.List<Aspire.Hosting.ApplicationModel.ResourceUrlAnnotation> * System.Threading.CancellationToken -> Aspire.Hosting.ApplicationModel.ResourceUrlsCallbackContext
Public Sub New (executionContext As DistributedApplicationExecutionContext, resource As IResource, Optional urls As List(Of ResourceUrlAnnotation) = Nothing, Optional cancellationToken As CancellationToken = Nothing)
Parameters
- executionContext
- DistributedApplicationExecutionContext
The execution context.
- resource
- IResource
The resource.
- urls
- List<ResourceUrlAnnotation>
The URLs for the resource.
- cancellationToken
- CancellationToken