zijian666.DI
1.1.4-beta
This is a prerelease version of zijian666.DI.
dotnet add package zijian666.DI --version 1.1.4-beta
NuGet\Install-Package zijian666.DI -Version 1.1.4-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" Version="1.1.4-beta" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add zijian666.DI --version 1.1.4-beta
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: zijian666.DI, 1.1.4-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 as a Cake Addin #addin nuget:?package=zijian666.DI&version=1.1.4-beta&prerelease // Install zijian666.DI as a Cake Tool #tool nuget:?package=zijian666.DI&version=1.1.4-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 | 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net6.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 6.0.0)
- Microsoft.Extensions.Hosting.Abstractions (>= 6.0.0)
- Microsoft.Extensions.Logging (>= 6.0.0)
- zijian666.Core.Abstractions (>= 2.0.2)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on zijian666.DI:
Package | Downloads |
---|---|
zijian666.WebApiExtensions
用于快速创建简单易用的标准化WebApi项目 |
|
zijian666.DI.Autowired
Autowired自动装配 |
|
zijian666.DI.Configuration
依赖注入配置相关扩展方法 |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.1.4-beta | 102 | 9/26/2024 |
1.1.3-beta | 109 | 9/18/2024 |
1.1.0.15-beta | 147 | 6/24/2024 |
1.0.16.1 | 159 | 3/12/2024 |
1.0.15.6 | 138 | 3/7/2024 |
1.0.15.5 | 118 | 3/5/2024 |
1.0.15.3 | 119 | 3/4/2024 |
1.0.15.1 | 112 | 2/28/2024 |
1.0.15 | 111 | 2/28/2024 |
1.0.14 | 206 | 10/15/2023 |
1.0.13 | 133 | 10/12/2023 |
1.0.7 | 371 | 4/7/2023 |
1.0.6 | 624 | 6/10/2022 |
1.0.4 | 579 | 6/9/2022 |
1.0.3 | 468 | 4/15/2022 |
1.0.2 | 740 | 4/30/2021 |
1.0.1 | 359 | 3/29/2021 |
UPLOGS.md