Created
March 3, 2022 00:06
-
-
Save sunnyy02/0c0de7bc0244eb3c26d5bd60ccac98c2 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<AppointmentBookingRecognizer>(); | |
// Register the AppointmentBookingDialog | |
services.AddSingleton<AppointmentBookingDialog>(); | |
// 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>>(); | |
// Create the Twilio Adapter | |
services.AddSingleton<TwilioAdapter, TwilioAdapterWithErrorHandler>(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment