Skip to content

Instantly share code, notes, and snippets.

@sunnyy02
Created March 2, 2022 23:04
Show Gist options
  • Save sunnyy02/f5dccdbd103cea975bd9edbd95c8ccf6 to your computer and use it in GitHub Desktop.
Save sunnyy02/f5dccdbd103cea975bd9edbd95c8ccf6 to your computer and use it in GitHub Desktop.
// Register LUIS recognizer
services.AddSingleton<FlightBookingRecognizer>();
// Register the BookingDialog.
services.AddSingleton<BookingDialog>();
// The MainDialog that will be run by the bot.
services.AddSingleton<MainDialog>();
// Create the bot as a transient. In this case the ASP Controller is expecting an IBot.
services.AddTransient<IBot, DialogAndWelcomeBot<MainDialog>>();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment