zijian666.DI.Net8
1.2.0-beta
This is a prerelease version of zijian666.DI.Net8.
dotnet add package zijian666.DI.Net8 --version 1.2.0-beta
NuGet\Install-Package zijian666.DI.Net8 -Version 1.2.0-beta
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="zijian666.DI.Net8" Version="1.2.0-beta" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add zijian666.DI.Net8 --version 1.2.0-beta
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: zijian666.DI.Net8, 1.2.0-beta"
#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 zijian666.DI.Net8 as a Cake Addin #addin nuget:?package=zijian666.DI.Net8&version=1.2.0-beta&prerelease // Install zijian666.DI.Net8 as a Cake Tool #tool nuget:?package=zijian666.DI.Net8&version=1.2.0-beta&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
zijian666.DI
介绍
Microsoft.Extensions.DependencyInjection的功能拓展
更新日志
安装教程
nuget - zijian666.DI
nuget - zijian666.DI.Autowired
nuget - zijian666.DI.NamedService
nuget - zijian666.DI.Configuration
项目示例
功能说明
1. Startup
启动类
任意添加多个启动类, 并注入参数
2. Component
组件自动注册
标识为
[Component]
特性的类将自动注册为服务
3. HostLifeCallback
宿主生命周期回调
用于在宿主启动后和停止时执行委托回调
详见 zijian666.DI/HostLifeCallback
4. NamedService
命名服务
可为注册服务命名
5. Autowired
自动装配
仿 Java Spring 自动装配特性
@Autowrited
6. Configuration
仿 Java Spring 自动装配特性
@Autowrited
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.0)
- zijian666.DI (>= 1.2.0-beta)
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.2.0-beta | 34 | 11/27/2024 |
UPLOGS.md