Exemple #1
0
 private MqRedis(ConnectionMultiplexer redisConn, IModel channel)
 {
     this._redisConn     = redisConn;
     this._mqChannel     = channel;
     this._mqCountSender = new MqCountSender(this);
     VirtualRoot.BuildEventPath <Per20SecondEvent>("周期将本节点的MqCountData广播到Mq上去", LogEnum.None, message => {
         this._mqCountSender.SendMqCounts(MqCountRoot.GetMqCount());
     }, typeof(MqCountRoot));
 }
Exemple #2
0
 private MqRedis(ConnectionMultiplexer redisConn, IModel channel)
 {
     this._redisConn     = redisConn;
     this._mqChannel     = channel;
     this._mqCountSender = new MqCountSender(this);
     VirtualRoot.BuildEventPath <Per20SecondEvent>("周期将本节点的MqCountData广播到Mq上去", LogEnum.None, typeof(MqCountRoot), PathPriority.Normal, message => {
         this._mqCountSender.SendMqCounts(MqCountRoot.GetMqCount());
     });
     VirtualRoot.BuildCmdPath <RefreshMinerTestIdMqCommand>(this.GetType(), LogEnum.DevConsole, message => {
         RefreshClientTestId();
     });
     RefreshClientTestId();
 }