BotConfiguration.LoadFromFolderAsync(String, String) Method

Definition

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.

Applies to