ILocaleFinder.FindLocale(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.
Given an activity it finds the locale.
public System.Threading.Tasks.Task<string> FindLocale (Microsoft.Bot.Connector.IActivity activity, System.Threading.CancellationToken token);
abstract member FindLocale : Microsoft.Bot.Connector.IActivity * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
Public Function FindLocale (activity As IActivity, token As CancellationToken) As Task(Of String)
Parameters
- activity
- IActivity
The activity.
- token
- CancellationToken
The cancellation token.