Doo.Config
0.1.0
There is a newer prerelease version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Doo.Config --version 0.1.0
NuGet\Install-Package Doo.Config -Version 0.1.0
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="Doo.Config" Version="0.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Doo.Config" Version="0.1.0" />
<PackageReference Include="Doo.Config" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Doo.Config --version 0.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Doo.Config, 0.1.0"
#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.
#:package Doo.Config@0.1.0
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Doo.Config&version=0.1.0
#tool nuget:?package=Doo.Config&version=0.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Doo.Config 配置中心
提供统一配置,所有节点均从该节点读取配置
同时可以从该节点去同步各个节点的配置、重启各个节点、查看各个节点的运行情况
提供单机模式和中心节点模式
单机模式
由应用直接读取配置、保存日志。此模式不支持订阅事件,当然单节点也没有跨节点同步事件的需求。中心节点模式
由应用连接到中心节点读取配置,上传日志,订阅事件。
单机模式
using Doo.Config;
LocalConfigHelper.SetLocalConfigFileName ("config");//设置配置文件路径,未设置时,默认为app
//查找以根目录为基准,后缀为.json的配置文件
string port = LocalConfigHelper.AppConfig["port"];
//从配置文件中查找port的变量值。优先级为*.publish.json>*.local.json>*.json
| 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp3.0 is compatible. netcoreapp3.1 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETCoreApp 3.0
- Microsoft.AspNetCore.Hosting (>= 2.2.7)
- Microsoft.AspNetCore.Server.Kestrel (>= 2.2.0)
- Microsoft.AspNetCore.SignalR (>= 1.1.0)
- Microsoft.AspNetCore.SignalR.Client (>= 3.0.0)
- Microsoft.Extensions.Configuration (>= 3.0.0)
- Microsoft.Extensions.Configuration.Json (>= 3.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated | |
|---|---|---|---|
| 0.1.4-alpha | 604 | 10/19/2019 | |
| 0.1.3-alpha | 540 | 10/19/2019 | |
| 0.1.2-alpha | 565 | 10/6/2019 | |
| 0.1.1-alpha | 556 | 10/5/2019 | |
| 0.1.0 | 1,045 | 10/4/2019 |
Doo配置节点
可单机可集群
这是第一个版本,使用说明见ReadMe.md