Show / Hide Table of Contents

Class IBotWithQueueExtensions

Extension methods for IBotWithQueue.

Inheritance
object
IBotWithQueueExtensions
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Microsoft.XboxStudios.BotBrain.Operations
Assembly: BotBrain.Operations.dll
Syntax
public static class IBotWithQueueExtensions

Methods

View Source

WaitForQueueStopped(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.

  • View Source
In this article
Back to top Generated by DocFX