NetPro.Startup
6.0.5-beta.1
See the version list below for details.
dotnet add package NetPro.Startup --version 6.0.5-beta.1
NuGet\Install-Package NetPro.Startup -Version 6.0.5-beta.1
<PackageReference Include="NetPro.Startup" Version="6.0.5-beta.1" />
paket add NetPro.Startup --version 6.0.5-beta.1
#r "nuget: NetPro.Startup, 6.0.5-beta.1"
// Install NetPro.Startup as a Cake Addin
#addin nuget:?package=NetPro.Startup&version=6.0.5-beta.1&prerelease
// Install NetPro.Startup as a Cake Tool
#tool nuget:?package=NetPro.Startup&version=6.0.5-beta.1&prerelease
NetPro.Satrtup使用
使用
启用服务
通过添加环境变量ASPNETCORE_HOSTINGSTARTUPASSEMBLIES=NetPro.Satrtup,开发环境可以通过设置launchSettings.json来启用NetPro.Satrtup插件
{
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development",
"ASPNETCORE_HOSTINGSTARTUPASSEMBLIES": "NetPro.Satrtup"
}
}
生产环境通过设置系统环境方式启用以docker为例
docker run -e ASPNETCORE_HOSTINGSTARTUPASSEMBLIES=NetPro.Satrtup
k8s为例
env:
- name:ASPNETCORE_HOSTINGSTARTUPASSEMBLIES
value:"NetPro.Satrtup"
linux为例
export ASPNETCORE_HOSTINGSTARTUPASSEMBLIES=NetPro.Satrtup
高级用法
更改Startup执行顺序,既中间件的执行顺序
增加startup.json 文件到程序运行目录
{
"NetProCoreStartup": 0,
"NetProCoreStartup1": 1
}
//key为继承INetProStartup的实现类名称
//value为对应的执行顺序
//不区分大小写
//数字越大越靠后执行
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. 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. |
.NET Core | netcoreapp3.1 is compatible. |
-
.NETCoreApp 3.1
- BetterConsoleTables (>= 2.0.2-rc1)
- Figgle (>= 0.4.0)
- NetPro.TypeFinder (>= 6.0.5-beta.1)
- Scrutor (>= 3.3.0)
-
net6.0
- BetterConsoleTables (>= 2.0.2-rc1)
- Figgle (>= 0.4.0)
- NetPro.TypeFinder (>= 6.0.5-beta.1)
- Scrutor (>= 3.3.0)
NuGet packages (25)
Showing the top 5 NuGet packages that depend on NetPro.Startup:
Package | Downloads |
---|---|
NetPro.Core
Package Description |
|
NetPro.Checker
for checking the complex environment of application in the microservice environment. provide the system environment information of the current application. and Checking the health of application information and components |
|
NetPro.Web.Api
Package Description |
|
NetPro.NetProShareRequestBody
Package Description |
|
NetPro.MongoDb
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
6.0.16 | 853 | 7/24/2023 |
6.0.15 | 5,295 | 7/19/2022 |
6.0.14 | 4,967 | 7/10/2022 |
6.0.13 | 5,167 | 6/15/2022 |
6.0.12 | 5,047 | 6/15/2022 |
6.0.11 | 5,009 | 6/15/2022 |
6.0.10 | 4,933 | 6/11/2022 |
6.0.9 | 5,095 | 6/8/2022 |
6.0.8 | 4,797 | 5/26/2022 |
6.0.8-beta.3 | 463 | 5/24/2022 |
6.0.8-beta.2 | 114 | 5/24/2022 |
6.0.7 | 4,908 | 5/18/2022 |
6.0.6 | 4,645 | 4/28/2022 |
6.0.5 | 4,824 | 3/30/2022 |
6.0.5-beta.20 | 110 | 4/27/2022 |
6.0.5-beta.19 | 117 | 4/25/2022 |
6.0.5-beta.18 | 115 | 4/22/2022 |
6.0.5-beta.17 | 129 | 4/16/2022 |
6.0.5-beta.16 | 545 | 4/8/2022 |
6.0.5-beta.15 | 113 | 4/8/2022 |
6.0.5-beta.14 | 129 | 4/7/2022 |
6.0.5-beta.13 | 129 | 4/7/2022 |
6.0.5-beta.12 | 122 | 4/6/2022 |
6.0.5-beta.11 | 144 | 4/6/2022 |
6.0.5-beta.10 | 141 | 3/31/2022 |
6.0.5-beta.9 | 200 | 3/26/2022 |
6.0.5-beta.8 | 149 | 3/22/2022 |
6.0.5-beta.7 | 125 | 3/21/2022 |
6.0.5-beta.6 | 152 | 3/14/2022 |
6.0.5-beta.5 | 143 | 3/2/2022 |
6.0.5-beta.4 | 154 | 2/22/2022 |
6.0.5-beta.3 | 134 | 2/18/2022 |
6.0.5-beta.2 | 124 | 2/18/2022 |
6.0.5-beta.1 | 158 | 2/16/2022 |
6.0.4 | 2,905 | 2/10/2022 |
6.0.3 | 2,585 | 2/9/2022 |
6.0.3-beta.9 | 119 | 2/10/2022 |
6.0.3-beta.7 | 143 | 1/27/2022 |
6.0.3-beta.6 | 150 | 1/19/2022 |
6.0.3-beta.5 | 150 | 1/17/2022 |
6.0.3-beta.4 | 141 | 1/16/2022 |
6.0.3-beta.3 | 133 | 1/14/2022 |
6.0.3-beta.2 | 142 | 1/13/2022 |
6.0.3-beta.1 | 157 | 1/11/2022 |
6.0.2 | 1,265 | 1/6/2022 |
6.0.1 | 2,077 | 12/3/2021 |
3.1.11 | 1,681 | 11/19/2021 |
3.1.10 | 353 | 11/17/2021 |