Meteors.DependencyInjection.AutoService
6.2.2
See the version list below for details.
dotnet add package Meteors.DependencyInjection.AutoService --version 6.2.2
NuGet\Install-Package Meteors.DependencyInjection.AutoService -Version 6.2.2
<PackageReference Include="Meteors.DependencyInjection.AutoService" Version="6.2.2" />
paket add Meteors.DependencyInjection.AutoService --version 6.2.2
#r "nuget: Meteors.DependencyInjection.AutoService, 6.2.2"
// Install Meteors.DependencyInjection.AutoService as a Cake Addin #addin nuget:?package=Meteors.DependencyInjection.AutoService&version=6.2.2 // Install Meteors.DependencyInjection.AutoService as a Cake Tool #tool nuget:?package=Meteors.DependencyInjection.AutoService&version=6.2.2
[Meteors] DependencyInjection.AutoService
Install-Package Meteors.DependencyInjection.AutoService -Version 6.2.0
version 1.0 net6.0
<p align="center"> <img width="10%" src="https://user-images.githubusercontent.com/48151918/175791394-3913f060-5551-435c-adda-5bc487964f1c.png" /> </p>
//build.Services.AddAutoService(Assembly..namesapces..type);
build.Services.AddAutoService();
...
[AutoService(ServiceLifeTime, InterfaceType)]
[AutoService(ServiceLifeTime, InterfaceType)]
[AutoService()]
[AutoService(LifetimeType)]
[AutoService(ImplementationType)]
[AutoService(UseImplementation)]
[AutoService(LifetimeType,ImplementationType)]
[AutoService(LifetimeType,UseImplementation)]
[AutoService(ImplementationType,UseImplementation)]
[AutoService(LifetimeType,ImplementationType,UseImplementation)]
[AutoService] //default Scoped
class AnyService : IAnyService { }
[AutoService(typeOf(ICustomInterfaceName))] //take Implementation
class AnyService : ICustomInterfaceName { }
[AutoService(typeOf(ICustomInterfaceName1))] //take Implementation 1
class AnyService : ICustomInterfaceName,ICustomInterfaceName1,ICustomInterfaceName2 { }
[AutoService] //take Implementation IAnyService, is not first but same I + service-name
class AnyService : ICustomInterfaceName,IAnyService,ICustomInterfaceName2 { }
[AutoService] //take class
class AnyService {}
[AutoService]//as UseImplementation=true or null and take first interface
class AnyService : ICustomInterfaceName { }
[AutoService(false)] //UseImplementation=false
class AnyService : ICustomInterfaceName { }
This lib belongs to the Meteors, Meteorites helps you write less and clean code with the power of design patterns and full support for the most popular programming for perpetual projects
All you need in your project is to use meteorites, Simplicity is one in all,
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. 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. |
-
net6.0
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Meteors.DependencyInjection.AutoService:
Package | Downloads |
---|---|
Meteors.AspNetCore
Build over Asp Net Core |
GitHub repositories
This package is not used by any popular GitHub repositories.