Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

Global.asax.cs 732 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
  1. namespace GlobalMessageHandlersBot
  2. {
  3. using System.Web.Http;
  4. using Autofac;
  5. using Microsoft.Bot.Builder.Dialogs;
  6. using Microsoft.Bot.Builder.Internals.Fibers;
  7. public class WebApiApplication : System.Web.HttpApplication
  8. {
  9. protected void Application_Start()
  10. {
  11. this.RegisterBotModules();
  12. GlobalConfiguration.Configure(WebApiConfig.Register);
  13. }
  14. private void RegisterBotModules()
  15. {
  16. var builder = new ContainerBuilder();
  17. builder.RegisterModule(new ReflectionSurrogateModule());
  18. builder.RegisterModule<GlobalMessageHandlersBotModule>();
  19. builder.Update(Conversation.Container);
  20. }
  21. }
  22. }
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...