Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/i-rzr-i/uniqueservicecollection

A product that can check and remove/avoid multiple and duplicate services injection in your current project.
https://github.com/i-rzr-i/uniqueservicecollection

collection dependency inject injection multiple remove service startup unique

Last synced: 3 days ago
JSON representation

A product that can check and remove/avoid multiple and duplicate services injection in your current project.

Awesome Lists containing this project

README

        

> **Note** This repository is developed using .netstandard2.0

[![NuGet Version](https://img.shields.io/nuget/v/UniqueServiceCollection.svg?style=flat&logo=nuget)](https://www.nuget.org/packages/UniqueServiceCollection/)
[![Nuget Downloads](https://img.shields.io/nuget/dt/UniqueServiceCollection.svg?style=flat&logo=nuget)](https://www.nuget.org/packages/UniqueServiceCollection)

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`

## Content
1. [USING](docs/usage.md)
1. [CHANGELOG](docs/CHANGELOG.md)
1. [BRANCH-GUIDE](docs/branch-guide.md)