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 3,988 7/2/2020
1.0.2.5 1,059 6/19/2020
1.0.2.3 1,060 6/19/2020
1.0.2.2 1,436 6/2/2020
1.0.2.1 1,603 4/24/2020
1.0.2 1,201 4/24/2020
1.0.1.9 1,190 4/24/2020
1.0.1.8 1,215 2/11/2020
1.0.1.7 1,190 2/7/2020
1.0.1.6 1,124 2/5/2020
1.0.1.5 1,102 2/5/2020
1.0.1.3 1,263 1/19/2020
1.0.1.2 1,105 1/19/2020
1.0.1.1 1,157 1/19/2020
1.0.1 1,192 1/19/2020
1.0.0.9 1,179 1/16/2020
1.0.0.8 1,113 1/16/2020
1.0.0.5 1,107 1/16/2020
1.0.0.2 1,140 1/16/2020
1.0.0.1 995 1/16/2020
1.0.0 1,022 1/16/2020