microsoft / botframework-sdk

Bot Framework provides the most comprehensive experience for building conversation applications.
MIT License
7.5k stars 2.44k forks source link

How can i inject different dependencies with autofac. #5086

Closed Dorentin1997 closed 6 years ago

Dorentin1997 commented 6 years ago

I have a bootstraper class that i run i soon as application start, usually i register services, repositories and other classes there and set an dependency resolver, and in controllers i use constructor inject to get the services and repositories. Can someone give me an example how can i do the same thing in bot framework. In the message controller i need to resolve a service which creates some logs and saves them in Database.

tomlm commented 6 years ago

I am closing this due to the fact that this repos issues are for platform DCRs only.

In addition, the post is:

a. it doesn't identify the SDK

b. it is a request for help and those should be done via stack overflow.

To get help with an issue with your bot

To file an issue against a component please go to the components repo