Code Shortcuts for Developers
Contains frequently used common services in form of properties. Instead of defining multiple common services in the constructor of a dependant type you just define one single dependency:
, which provides the following properties:
All services are internally wrapped in Lazy<TService>
, so none of the services get instantiated until first hit.
If there is a property named T
of the type
within a depenency class, it'll be injected automatically by Autofac. So, instead of writing
you just type
If there is a property of type ILogger
(with whatever name) within a depenency class, it'll also be injected automatically by Autofac.