BotConfiguration.LoadFromFolderAsync(String, String) 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.
Load the bot configuration by looking in a folder and loading the first .bot file in the folder.
public static System.Threading.Tasks.Task<Microsoft.Bot.Configuration.BotConfiguration> LoadFromFolderAsync (string folder, string secret = default);
static member LoadFromFolderAsync : string * string -> System.Threading.Tasks.Task<Microsoft.Bot.Configuration.BotConfiguration>
Public Shared Function LoadFromFolderAsync (folder As String, Optional secret As String = Nothing) As Task(Of BotConfiguration)
Parameters
- folder
- String
Folder to look for bot files.
- secret
- String
Secret to use to encrypt keys.
Returns
Task of BotConfiguration.