IPublishingActivityProgressReporter.CreateActivityAsync 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.
Creates a new publishing activity with the specified ID.
public System.Threading.Tasks.Task<Aspire.Hosting.Publishing.PublishingActivity> CreateActivityAsync(string id, string initialStatusText, bool isPrimary, System.Threading.CancellationToken cancellationToken);
abstract member CreateActivityAsync : string * string * bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Aspire.Hosting.Publishing.PublishingActivity>
Public Function CreateActivityAsync (id As String, initialStatusText As String, isPrimary As Boolean, cancellationToken As CancellationToken) As Task(Of PublishingActivity)
Parameters
- id
- String
Unique Id of the publishing activity.
- initialStatusText
- String
- isPrimary
- Boolean
Indicates that this activity is the primary activity.
- cancellationToken
- CancellationToken
The cancellation token.
Returns
The publishing activity
Remarks
When an activity is created the isPrimary
flag indicates whether this activity is the primary activity. When the primary activity is completed any launcher which is reading activities will stop listening for updates.