IDistributedApplicationLifecycleHook.BeforeStartAsync Method
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.
Executes before the distributed application starts.
public virtual System.Threading.Tasks.Task BeforeStartAsync (Aspire.Hosting.ApplicationModel.DistributedApplicationModel appModel, System.Threading.CancellationToken cancellationToken = default);
abstract member BeforeStartAsync : Aspire.Hosting.ApplicationModel.DistributedApplicationModel * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.BeforeStartAsync : Aspire.Hosting.ApplicationModel.DistributedApplicationModel * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function BeforeStartAsync (appModel As DistributedApplicationModel, Optional cancellationToken As CancellationToken = Nothing) As Task
Parameters
- appModel
- DistributedApplicationModel
The distributed application model.
- cancellationToken
- CancellationToken
Returns
A Task representing the asynchronous operation.