Doo.Config 0.1.0

There is a newer prerelease version of this package available.
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.
paket add Doo.Config --version 0.1.0                
#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.
// Install Doo.Config as a Cake Addin
#addin nuget:?package=Doo.Config&version=0.1.0

// Install Doo.Config as a Cake Tool
#tool nuget:?package=Doo.Config&version=0.1.0                

Doo.Config 配置中心

提供统一配置,所有节点均从该节点读取配置
同时可以从该节点去同步各个节点的配置、重启各个节点、查看各个节点的运行情况
提供单机模式和中心节点模式

  • 单机模式
    由应用直接读取配置、保存日志。此模式不支持订阅事件,当然单节点也没有跨节点同步事件的需求。

  • 中心节点模式
    由应用连接到中心节点读取配置,上传日志,订阅事件。

单机模式

using Doo.Config;
LocalConfigHelper.SetLocalConfigFileName ("config");//设置配置文件路径,未设置时,默认为app
//查找以根目录为基准,后缀为.json的配置文件
string port = LocalConfigHelper.AppConfig["port"];
//从配置文件中查找port的变量值。优先级为*.publish.json>*.local.json>*.json
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 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.

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 389 10/19/2019
0.1.3-alpha 344 10/19/2019
0.1.2-alpha 358 10/6/2019
0.1.1-alpha 344 10/5/2019
0.1.0 690 10/4/2019 0.1.0 is deprecated because it has critical bugs.

Doo配置节点
可单机可集群
这是第一个版本,使用说明见ReadMe.md