Guest User

Untitled

a guest
Jul 17th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. Conversation.UpdateContainer(builder =>
  2. {
  3.  
  4. builder.RegisterModule<MyModule>();
  5.  
  6. });
  7.  
  8. builder.Register(c => new BotFrameworkApplicationInsightsInstrumentation(CreateBasicSettings()))
  9. .Keyed<IBotFrameworkInstrumentation>(InstrumentationType.Basic)
  10. .SingleInstance();
  11.  
  12. builder.Register(c => new BotFrameworkApplicationInsightsInstrumentation(CreateSettingsWithCognitiveServices()))
  13. .Keyed<IBotFrameworkInstrumentation>(InstrumentationType.Cognitive)
  14. .SingleInstance();
  15.  
  16. _container = builder.Build();
  17.  
  18. Since i am not aware of the latest Autofac, can any one please guide me?
Add Comment
Please, Sign In to add comment