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 534 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
  1. namespace MiddlewareBot
  2. {
  3. using System.Web.Http;
  4. using Autofac;
  5. using Microsoft.Bot.Builder.Dialogs;
  6. public class WebApiApplication : System.Web.HttpApplication
  7. {
  8. protected void Application_Start()
  9. {
  10. var builder = new ContainerBuilder();
  11. builder.RegisterType<DebugActivityLogger>().AsImplementedInterfaces().InstancePerDependency();
  12. builder.Update(Conversation.Container);
  13. GlobalConfiguration.Configure(WebApiConfig.Register);
  14. }
  15. }
  16. }
Tip!

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

Comments

Loading...