private ConfigHeartbeatProtect()
        {
            try
            {
                cancelSource = new CancellationTokenSource();

                System.Threading.Tasks.Task.Factory.StartNew(() =>
                {
                    HeartRun();
                }, cancelSource.Token);

                redislistener = new RedisCommandListener(AppDomainContext.Context.ConfigParams.RedisServer);
                redislistener.Register((channle, msg) =>
                {
                    RedisCommandListen(channle, msg);
                }, cancelSource, RedisCommandConfig.Redis_channle);
            }
            catch (Exception ex)
            {
                LogHelper.WriteError(ex);
            }
        }
        private ConfigHeartbeatProtect()
        {
            try
            {
                cancelSource = new CancellationTokenSource();

                System.Threading.Tasks.Task.Factory.StartNew(() =>
                {
                    HeartRun();
                }, cancelSource.Token);

                redislistener = new RedisCommandListener(AppDomainContext.Context.ConfigParams.RedisServer);
                redislistener.Register((channle, msg) => 
                {
                    RedisCommandListen(channle, msg);
                }, cancelSource, RedisCommandConfig.Redis_channle);
            }
            catch (Exception ex)
            {
                LogHelper.WriteError(ex);
            }

        }