Пример #1
0
        /// <summary>
        /// 构造方法
        /// </summary>
        /// <param name="hsInfo">心跳信息</param>
        public RunningHeart(HeartServerInfo hsInfo)
            : base(hsInfo)
        {
            readyState   = new ReadyState(this);
            runningState = new RunningState(this);
            pauseState   = new PauseState(this);

            runState = readyState;
        }
Пример #2
0
 /// <summary>
 /// 构造方法
 /// </summary>
 /// <param name="hsInfo"></param>
 public LoadedHeart(HeartServerInfo hsInfo)
     : base(hsInfo)
 {
 }
Пример #3
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="hsInfo"></param>
 public HeartStateBase(HeartServerInfo hsInfo)
 {
     heartInfo = hsInfo;
 }
Пример #4
0
 /// <summary>
 /// 构造方法
 /// </summary>
 /// <param name="hsInfo"></param>
 public ExceptionHeart(HeartServerInfo hsInfo)
     : base(hsInfo)
 {
 }