IPostToBot.PostAsync(IActivity, 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.
Post an item (e.g. message or other external event) to the bot.
public System.Threading.Tasks.Task PostAsync (Microsoft.Bot.Connector.IActivity activity, System.Threading.CancellationToken token);
abstract member PostAsync : Microsoft.Bot.Connector.IActivity * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function PostAsync (activity As IActivity, token As CancellationToken) As Task
Parameters
- activity
- IActivity
The item for the bot.
- token
- CancellationToken
The cancellation token.
Returns
A task that represents the post operation.