CloudAdapter 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.
An adapter that implements the Bot Framework Protocol and can be hosted in different cloud environmens both public and private.
public class CloudAdapter : Microsoft.Bot.Builder.CloudAdapterBase, Microsoft.Bot.Builder.Integration.AspNet.Core.IBotFrameworkHttpAdapter
type CloudAdapter = class
inherit CloudAdapterBase
interface IBotFrameworkHttpAdapter
Public Class CloudAdapter
Inherits CloudAdapterBase
Implements IBotFrameworkHttpAdapter
- Inheritance
- Implements
Constructors
CloudAdapter() |
Initializes a new instance of the CloudAdapter class. (Public cloud. No auth. For testing.) |
CloudAdapter(BotFrameworkAuthentication, ILogger) |
Initializes a new instance of the CloudAdapter class. |
CloudAdapter(IConfiguration, IHttpClientFactory, ILogger) |
Initializes a new instance of the CloudAdapter class. |
Fields
BotIdentityKey |
The string value for the bot identity key. (Inherited from BotAdapter) |
InvokeResponseKey |
The key value for any InvokeResponseActivity that would be on the TurnState. (Inherited from BotAdapter) |
OAuthScopeKey |
The string value for the OAuth scope key. (Inherited from BotAdapter) |
Properties
BotFrameworkAuthentication |
Gets the BotFrameworkAuthentication instance for this adapter. (Inherited from CloudAdapterBase) |
Logger |
Gets a ILogger to use within this adapter and its subclasses. (Inherited from CloudAdapterBase) |
MiddlewareSet |
Gets the collection of middleware in the adapter's pipeline. (Inherited from BotAdapter) |
OnTurnError |
Gets or sets an error handler that can catch exceptions in the middleware or application. (Inherited from BotAdapter) |
Methods
Extension 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. |