组件在实现PublicKey过程由Channel派生出两个对象ServerChannel和ClientChannel对PublicKey进行处理。ServerChannel在接收数据时要进和PublicKey验证,ClientChannel在发送数据时在表头添加PublicKey值。
配置PublicKey
<configSections>服务端和请求端配置方式一样。
<section name="netconfig" type="HFSoft.Net.NetConfigSectionHandler, HFSoft.Net,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" />
</configSections>
<netconfig>
<publickey value="Public"/>
</netconfig>