Share via


IPostToBot.PostAsync(IActivity, CancellationToken) Method

Definition

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.

Applies to