AdapterExtensions Class
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.
Defines extension methods for the BotAdapter class.
public static class AdapterExtensions
type AdapterExtensions = class
Public Module AdapterExtensions
- Inheritance
-
AdapterExtensions
Methods
UseBotState(BotAdapter, BotState[]) |
Adds middleware to the adapter to register one or more BotState objects on the turn context. The middleware registers the state objects on the turn context at the start of each turn. |
UseState(BotAdapter, UserState, ConversationState, Boolean) |
Obsolete.
Registers user and conversation state objects with the adapter. These objects will be available via the turn context's TurnState.Get<T>() method. |
UseStorage(BotAdapter, IStorage) |
Adds middleware to the adapter to register an IStorage object on the turn context. The middleware registers the state objects on the turn context at the start of each turn. |