IDistributedApplicationLifecycleHook.AfterResourcesCreatedAsync Method
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.
Executes after the orchestrator has created the resources in the application model.
C#
public virtual System.Threading.Tasks.Task AfterResourcesCreatedAsync(Aspire.Hosting.ApplicationModel.DistributedApplicationModel appModel, System.Threading.CancellationToken cancellationToken = default);
abstract member AfterResourcesCreatedAsync : Aspire.Hosting.ApplicationModel.DistributedApplicationModel * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.AfterResourcesCreatedAsync : Aspire.Hosting.ApplicationModel.DistributedApplicationModel * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function AfterResourcesCreatedAsync (appModel As DistributedApplicationModel, Optional cancellationToken As CancellationToken = Nothing) As Task
- appModel
- DistributedApplicationModel
The DistributedApplicationModel for the distributed application.
- cancellationToken
- CancellationToken
A Task representing the asynchronous operation.
There is no guarantee that the resources have fully started or are in a working state when this method is called.
Produkt | Verze |
---|---|
.NET Aspire | 8.0.0, 9.0.0, 9.1.0 |