Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/megafetis/conveyr.extensions.microsoft.dependencyinjection
- Owner: megafetis
- License: apache-2.0
- Created: 2020-05-25T16:47:22.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-07-30T09:02:51.000Z (over 3 years ago)
- Last Synced: 2024-12-29T15:50:42.156Z (about 1 month ago)
- Topics: conveyor, conveyr, dependencyinjection, nuget
- Language: C#
- Homepage:
- Size: 45.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
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
```csvar services = new ServiceCollection();
services.AddConveyR(new []{Assembly1,Assembly2},conf=>conf.AsSingleton().Unsing());
var provider = services.BuildServiceProvider();```