-
Notifications
You must be signed in to change notification settings - Fork 5
Dependency Injection
Johelvis Guzman edited this page May 16, 2019
·
9 revisions
The DotNetToolkit.Repository provides dependency injection packages which will register all repositories, interceptors and services automatically. The dependency injection packages contain an extension method for its specified container which will scan for all IRepository<...>, IService<...> and IRepositoryInterceptor implementations in all the executing assemblies, and will register them so that you don't have to.
Currently, the following containers are supported by the DotNetToolkit.Repository:
- DotNetToolkit.Repository.Extensions.Microsoft.DependencyInjection
- DotNetToolkit.Repository.Extensions.Unity
Additionally, the repositories can be configured using the RepositoryDependencyResolver to use an IOC container.