Note This repository is developed using .netstandard2.0
This repository results from the necessity to avoid multiple and duplicate services injection.
This can be a problem when in solution are multiple projects and a lot of services are injected into every project, and if some of the injected services required additional services, in some cases as a result of this manipulation services may be injected multiple times in the same project. In other words circular injection.
To solve this problem are available some extension methods AddUnique
or CheckAndCleanUpDuplicateService
for IServiceCollection
and ServiceCollection
.
In case you wish to use it in your project, u can install the package from nuget.org or specify what version you want:
Install-Package UniqueServiceCollection -Version x.x.x.x