DanielCunha.Toolkit.MappedServices 1.0.0

There is a newer version of this package available.
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                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="DanielCunha.Toolkit.MappedServices" Version="1.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add DanielCunha.Toolkit.MappedServices --version 1.0.0                
#r "nuget: DanielCunha.Toolkit.MappedServices, 1.0.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.1 587 11/9/2019
1.0.0 408 11/9/2019