Created
March 2, 2022 23:04
-
-
Save sunnyy02/f5dccdbd103cea975bd9edbd95c8ccf6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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