BotConfiguration.LoadAsync(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 configuration from a .bot file.
public static System.Threading.Tasks.Task<Microsoft.Bot.Configuration.BotConfiguration> LoadAsync (string file, string secret = default);
static member LoadAsync : string * string -> System.Threading.Tasks.Task<Microsoft.Bot.Configuration.BotConfiguration>
Public Shared Function LoadAsync (file As String, Optional secret As String = Nothing) As Task(Of BotConfiguration)
Parameters
- file
- String
Path to bot file.
- secret
- String
Secret to use to decrypt the file on disk.
Returns
Task of BotConfiguration.