Jaa


BotConfiguration.LoadAsync(String, String) Method

Definition

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.

Applies to