Jack.Extensions.DependencyInjection
1.0.2.6
dotnet add package Jack.Extensions.DependencyInjection --version 1.0.2.6
NuGet\Install-Package Jack.Extensions.DependencyInjection -Version 1.0.2.6
<PackageReference Include="Jack.Extensions.DependencyInjection" Version="1.0.2.6" />
paket add Jack.Extensions.DependencyInjection --version 1.0.2.6
#r "nuget: Jack.Extensions.DependencyInjection, 1.0.2.6"
// Install Jack.Extensions.DependencyInjection as a Cake Addin #addin nuget:?package=Jack.Extensions.DependencyInjection&version=1.0.2.6 // Install Jack.Extensions.DependencyInjection as a Cake Tool #tool nuget:?package=Jack.Extensions.DependencyInjection&version=1.0.2.6
支持字段采用[DependencyInjection]方式支持依赖注入,支持属性依赖注入,支持静态字段采用[DependencyInjection]依赖注入,类如果使用[DependencyInjection(Singleton)]等属性,会被自动注入。
.net core 2.x Startup中:
public IServiceProvider ConfigureServices(IServiceCollection services)
{
//your codes here ...
return services.BuildJackServiceProvider();
}
.net core 3.x Program中:
public static IHostBuilder CreateHostBuilder(string[] args) =>
Host.CreateDefaultBuilder(args)
.UseServiceProviderFactory(new JackAspNetCoreServiceProviderFactory())
.ConfigureWebHostDefaults(webBuilder =>
{
webBuilder.UseStartup<Startup>();
});
}
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 | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Microsoft.AspNetCore.Mvc.Core (>= 2.1.0)
- Microsoft.Extensions.DependencyInjection (>= 2.1.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Jack.Extensions.DependencyInjection:
Package | Downloads |
---|---|
Jack.Extensions.DependencyInjection.AspNetCore
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.2.6 | 5,361 | 7/2/2020 |
1.0.2.5 | 1,106 | 6/19/2020 |
1.0.2.3 | 1,105 | 6/19/2020 |
1.0.2.2 | 1,494 | 6/2/2020 |
1.0.2.1 | 1,691 | 4/24/2020 |
1.0.2 | 1,261 | 4/24/2020 |
1.0.1.9 | 1,249 | 4/24/2020 |
1.0.1.8 | 1,256 | 2/11/2020 |
1.0.1.7 | 1,231 | 2/7/2020 |
1.0.1.6 | 1,162 | 2/5/2020 |
1.0.1.5 | 1,143 | 2/5/2020 |
1.0.1.3 | 1,310 | 1/19/2020 |
1.0.1.2 | 1,144 | 1/19/2020 |
1.0.1.1 | 1,208 | 1/19/2020 |
1.0.1 | 1,228 | 1/19/2020 |
1.0.0.9 | 1,232 | 1/16/2020 |
1.0.0.8 | 1,160 | 1/16/2020 |
1.0.0.5 | 1,147 | 1/16/2020 |
1.0.0.2 | 1,179 | 1/16/2020 |
1.0.0.1 | 1,040 | 1/16/2020 |
1.0.0 | 1,049 | 1/16/2020 |