Class IBotWithQueueExtensions
Extension methods for IBotWithQueue.
Inherited Members
Namespace: Microsoft.XboxStudios.BotBrain.Operations
Assembly: BotBrain.Operations.dll
Syntax
public static class IBotWithQueueExtensions
Methods
View SourceWaitForQueueStopped(IBotWithQueue, Func<Task>?, CancellationToken)
Waits for the queue to finish, if it is running.
Declaration
public static Task WaitForQueueStopped(this IBotWithQueue bot, Func<Task>? initialTask = null, CancellationToken token = default)
Parameters
Type | Name | Description |
---|---|---|
IBotWithQueue | bot | The bot being extended. |
Func<Task> | initialTask | An optional task to run after registering the queue finished events. |
CancellationToken | token | A token to monitor for cancellation. |
Returns
Type | Description |
---|---|
Task | A task. |