IActivityTaskQueue.WaitForActivityAsync(CancellationToken) 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.
Wait for a signal of an enqueued Activity with Claims to be processed.
public System.Threading.Tasks.Task<Microsoft.Agents.Hosting.AspNetCore.BackgroundQueue.ActivityWithClaims> WaitForActivityAsync(System.Threading.CancellationToken cancellationToken);
abstract member WaitForActivityAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Agents.Hosting.AspNetCore.BackgroundQueue.ActivityWithClaims>
Public Function WaitForActivityAsync (cancellationToken As CancellationToken) As Task(Of ActivityWithClaims)
Parameters
- cancellationToken
- CancellationToken
CancellationToken used to cancel the wait.
Returns
An ActivityWithClaims to be processed.
Remarks
It is assumed these claims have already been authenticated.