参阅:
Adf.cs
http://www.xiaobo.li/adf/513.html
Adf.RegistryServer
http://www.xiaobo.li/adf/516.html
客户端支持, 配置模式及注册中心模式
两种模式使用方式完全一致,仅配置节定义区别,如下:
配置模式:
<section name="TestServer" type="Adf.Config.IpGroupSection,Adf"/>
注册中心模式:
<section name="TestServer" type="Adf.Cs.CsRegistrySection,Adf.Cs"/>
完整配置参考:
<?xml version="1.0"?>
<configuration>
<configSections>
<section name="TestServer" type="Adf.Config.IpGroupSection,Adf"/>
<!--<section name="TestServer" type="Adf.Cs.CsRegistrySection,Adf.Cs"/>-->
</configSections>
<appSettings>
<add key="Log:Path" value="c:\Logs\Adf.Cs\TestClient"/>
<!-- 日志刷新时间间隔(秒) -->
<add key="Log:FlushInterval" value="10"/>
<!-- 日志禁用 -->
<!--<add key="Log:Disabled" value="all"/>-->
</appSettings>
<!-- Servers -->
<TestServer>
<!--<add ip="127.0.0.1" port="200"/>-->
<add ip="127.0.0.2" port="4562"/>
<add ip="127.0.0.3" port="4562"/>
<add ip="127.0.0.4" port="4562"/>
</TestServer>
</configuration>
.