NetPro.Core
6.0.3-beta.6
This is a prerelease version of NetPro.Core.
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package NetPro.Core --version 6.0.3-beta.6
NuGet\Install-Package NetPro.Core -Version 6.0.3-beta.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="NetPro.Core" Version="6.0.3-beta.6" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NetPro.Core --version 6.0.3-beta.6
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: NetPro.Core, 6.0.3-beta.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 NetPro.Core as a Cake Addin #addin nuget:?package=NetPro.Core&version=6.0.3-beta.6&prerelease // Install NetPro.Core as a Cake Tool #tool nuget:?package=NetPro.Core&version=6.0.3-beta.6&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Core使用
框架的基础支撑,主要包含依赖注入,startup生命周期管理等核心逻辑
使用
appsetting.json
基础配置
"NetProOption": {
"UseResponseCompression": false,//是否启用响应压缩
"ThreadMinCount": 5,//最小线程数
"ApplicationName": "",//应用名称
"RequestWarningThreshold": 5, //请求时长的警告临界值
"RoutePrefix":"api" //全局路由前缀
},
常用功能
静态方式获取对象实例
EngineContext.Current.Resolve<对象类型>();
Apollo配置中心
/// <summary>
///
/// </summary>
/// <param name="args"></param>
/// <returns></returns>
public static IHostBuilder CreateHostBuilder(string] args) =>
Host.CreateDefaultBuilder(args)
.UseServiceProviderFactory(new utofacServiceProviderFactory())
.ConfigureAppConfiguration((hostingContext, onfig) => ApolloClientHelper.ApolloConfighostingContext, config, args))
.ConfigureWebHostDefaults(webBuilder =>
{
webBuilder.UseStartup<Startup>();
});
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
- AutoMapper.Extensions.Microsoft.DependencyInjection (>= 11.0.0)
- Com.Ctrip.Framework.Apollo.Configuration (>= 2.4.1)
- ConsoleTables (>= 2.4.2)
- NetPro.Startup (>= 6.0.3-beta.6)
- NetPro.TypeFinder (>= 6.0.3-beta.6)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on NetPro.Core:
Package | Downloads |
---|---|
NetPro.Web.Core
Package Description |
|
NetPro.Analysicn
Package Description |
|
NetPro.Taos
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
6.0.7 | 3,672 | 5/18/2022 |
6.0.6 | 3,339 | 4/28/2022 |
6.0.5 | 3,384 | 3/30/2022 |
6.0.5-beta.20 | 130 | 4/27/2022 |
6.0.5-beta.19 | 139 | 4/25/2022 |
6.0.5-beta.18 | 135 | 4/22/2022 |
6.0.5-beta.17 | 147 | 4/16/2022 |
6.0.5-beta.16 | 606 | 4/8/2022 |
6.0.5-beta.15 | 137 | 4/8/2022 |
6.0.5-beta.14 | 146 | 4/7/2022 |
6.0.5-beta.13 | 143 | 4/7/2022 |
6.0.5-beta.12 | 141 | 4/6/2022 |
6.0.5-beta.11 | 164 | 4/6/2022 |
6.0.5-beta.10 | 157 | 3/31/2022 |
6.0.5-beta.9 | 207 | 3/26/2022 |
6.0.5-beta.8 | 162 | 3/22/2022 |
6.0.5-beta.7 | 149 | 3/21/2022 |
6.0.5-beta.6 | 164 | 3/14/2022 |
6.0.5-beta.5 | 163 | 3/2/2022 |
6.0.5-beta.4 | 161 | 2/22/2022 |
6.0.5-beta.3 | 149 | 2/18/2022 |
6.0.5-beta.2 | 139 | 2/18/2022 |
6.0.5-beta.1 | 172 | 2/16/2022 |
6.0.4 | 2,292 | 2/10/2022 |
6.0.3 | 2,155 | 2/9/2022 |
6.0.3-beta.9 | 142 | 2/10/2022 |
6.0.3-beta.7 | 161 | 1/27/2022 |
6.0.3-beta.6 | 159 | 1/19/2022 |
6.0.3-beta.5 | 163 | 1/17/2022 |
6.0.3-beta.4 | 153 | 1/16/2022 |
6.0.3-beta.3 | 154 | 1/14/2022 |
6.0.3-beta.2 | 149 | 1/13/2022 |
6.0.3-beta.1 | 174 | 1/11/2022 |
6.0.2 | 1,175 | 1/6/2022 |
6.0.1 | 2,004 | 12/3/2021 |
3.1.11 | 1,573 | 11/17/2021 |
3.1.10 | 2,107 | 7/29/2021 |
3.1.9 | 1,723 | 7/1/2021 |
3.1.8 | 1,709 | 12/15/2020 |
3.1.6 | 1,876 | 9/16/2020 |
3.1.5 | 1,753 | 9/8/2020 |
3.1.2 | 1,858 | 6/30/2020 |
3.1.1 | 1,883 | 6/23/2020 |
3.1.0 | 4,448 | 5/24/2020 |
1.0.1 | 2,233 | 5/4/2020 |
1.0.0 | 2,034 | 4/27/2020 |