Skip to content

Instantly share code, notes, and snippets.

@sunnyy02
Created March 3, 2022 00:06
Show Gist options
  • Save sunnyy02/0c0de7bc0244eb3c26d5bd60ccac98c2 to your computer and use it in GitHub Desktop.
Save sunnyy02/0c0de7bc0244eb3c26d5bd60ccac98c2 to your computer and use it in GitHub Desktop.
// 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