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                
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="Jack.Extensions.DependencyInjection" Version="1.0.2.6" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Jack.Extensions.DependencyInjection --version 1.0.2.6                
#r "nuget: Jack.Extensions.DependencyInjection, 1.0.2.6"                
#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 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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,421 7/2/2020
1.0.2.5 1,107 6/19/2020
1.0.2.3 1,106 6/19/2020
1.0.2.2 1,495 6/2/2020
1.0.2.1 1,692 4/24/2020
1.0.2 1,262 4/24/2020
1.0.1.9 1,250 4/24/2020
1.0.1.8 1,257 2/11/2020
1.0.1.7 1,232 2/7/2020
1.0.1.6 1,163 2/5/2020
1.0.1.5 1,144 2/5/2020
1.0.1.3 1,311 1/19/2020
1.0.1.2 1,145 1/19/2020
1.0.1.1 1,209 1/19/2020
1.0.1 1,229 1/19/2020
1.0.0.9 1,233 1/16/2020
1.0.0.8 1,161 1/16/2020
1.0.0.5 1,148 1/16/2020
1.0.0.2 1,180 1/16/2020
1.0.0.1 1,041 1/16/2020
1.0.0 1,050 1/16/2020