Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/megafetis/conveyr.extensions.microsoft.dependencyinjection

ConveyR extensions for Microsoft.Extensions.DependencyInjection DI
https://github.com/megafetis/conveyr.extensions.microsoft.dependencyinjection

conveyor conveyr dependencyinjection nuget

Last synced: 8 days ago
JSON representation

ConveyR extensions for Microsoft.Extensions.DependencyInjection DI

Awesome Lists containing this project

README

        

# ConveyR.Extensions.Microsoft.DependencyInjection
=======
[![NuGet](https://img.shields.io/nuget/dt/ConveyR.Extensions.Microsoft.DependencyInjection.svg)](https://www.nuget.org/packages/ConveyR.Extensions.Microsoft.DependencyInjection/)
[![NuGet](https://img.shields.io/nuget/vpre/ConveyR.Extensions.Microsoft.DependencyInjection.svg)](https://www.nuget.org/packages/ConveyR.Extensions.Microsoft.DependencyInjection/)

ConveyR extensions for Microsoft.Extensions.DependencyInjection DI

DI extensions for [ConveyR](https://github.com/megafetis/ConveyR).

##### Basic usage

```cs

var services = new ServiceCollection();
services.AddConveyR(); // by default scan entry point assembly
//or services.AddConveyR(Assembly1,Assembly2,...);
var provider = services.BuildServiceProvider();

```
##### Custom
```cs

var services = new ServiceCollection();
services.AddConveyR(new []{Assembly1,Assembly2},conf=>conf.AsSingleton().Unsing());
var provider = services.BuildServiceProvider();

```