TelemetryLoggerMiddleware.OnSendActivityAsync 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.
Uses the telemetry client's TrackEvent(String, IDictionary<String,String>, IDictionary<String,Double>) method to log telemetry data when the bot sends the user a message. It uses the telemetry client's The event name is BotMsgSendEvent.
protected virtual System.Threading.Tasks.Task OnSendActivityAsync (Microsoft.Bot.Schema.Activity activity, System.Threading.CancellationToken cancellation);
abstract member OnSendActivityAsync : Microsoft.Bot.Schema.Activity * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.OnSendActivityAsync : Microsoft.Bot.Schema.Activity * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Protected Overridable Function OnSendActivityAsync (activity As Activity, cancellation As CancellationToken) As Task
Parameters
- activity
- Activity
Current activity sent from user.
- cancellation
- CancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Returns
A task that represents the work queued to execute.