DanielCunha.Toolkit.MappedServices
1.0.0
See the version list below for details.
dotnet add package DanielCunha.Toolkit.MappedServices --version 1.0.0
NuGet\Install-Package DanielCunha.Toolkit.MappedServices -Version 1.0.0
<PackageReference Include="DanielCunha.Toolkit.MappedServices" Version="1.0.0" />
paket add DanielCunha.Toolkit.MappedServices --version 1.0.0
#r "nuget: DanielCunha.Toolkit.MappedServices, 1.0.0"
// Install DanielCunha.Toolkit.MappedServices as a Cake Addin #addin nuget:?package=DanielCunha.Toolkit.MappedServices&version=1.0.0 // Install DanielCunha.Toolkit.MappedServices as a Cake Tool #tool nuget:?package=DanielCunha.Toolkit.MappedServices&version=1.0.0
Mapped Services
The idea of this package is to make it easier to work with dependency injection in ASP.NET Core.
Basically, it contains an attribute which can be used to automatically add your services to the service collection.
This spares you from adding all your services manually to the service collection. All you have to do is to call services.AddMappedServices()
in your Startup.cs
class and the work will be done.
Motivation
Create an ease to use feature which automatically map contracts (Interfaces) and implementations (Classes) into services and add them to the service collection.
Installation
Install NuGet package DanielCunha.Toolkit.MappedServices or download repo and compile it manually so you can reference it from your target project.
Usage
Working on it...
In case there were any doubts, there is a sample project in this repository which use this package.
Contribute
Fell free to clone this repository and modify the projects as you wish. I'll glad to add your changes to the next version of the package!
License
MIT License.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp3.0 is compatible. netcoreapp3.1 was computed. |
-
.NETCoreApp 3.0
- Microsoft.Extensions.DependencyInjection (>= 3.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.