Quantcast
Channel: Tweetinvi a friendly Twitter C# library
Viewing all articles
Browse latest Browse all 4126

New Post: Dependency on Autofac

$
0
0
Hi there,

The core of Tweetinvi relies on Autofac. Tweetinvi relies on Injection of Control and Dependency Inversion and it is using Autofac for this.

Though, if you do not want to reference Autofac and prefer any other library for dependency injection (in constructors) please feel free to implement the ITweetinviContainer interface. You will then just have to change the class called TweetinviContainer where a new ITweetinviContainer is created by invoking _container = new AutofacContainer();

Hope this helps you understand why Tweetinvi needs Autofac and how to use another container.

Kind Regards,
Linvi

Viewing all articles
Browse latest Browse all 4126

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>