Inheritance: IDisposable
コード例 #1
0
        void heartbeatTick()
        {
            Heartbeat heartbeat = (Heartbeat)TimerEvent.Current.State;

            heartbeat.Execute(Runtime);
        }
コード例 #2
0
 public HeartbeatReplyDispatcher(Heartbeat heartbeat)
 {
     _heartbeat = heartbeat;
 }
コード例 #3
0
 public void UnregisterHeartbeat(Heartbeat heartbeat)
 {
     lock (_heartbeats)
     {
         var timerService = getTimerService();
         _heartbeats.Remove(heartbeat);
         timerService.RemoveEvent(_events[heartbeat]);
         _events.Remove(heartbeat);
     }
 }
コード例 #4
0
 public HeartbeatReplyDispatcher(Heartbeat heartbeat)
 {
     _heartbeat = heartbeat;
 }
コード例 #5
0
 public void RegisterHeartbeat(Heartbeat heartbeat)
 {
     lock (_heartbeats)
     {
         var timerService = getTimerService();
         _heartbeats.Add(heartbeat);
         TimerEvent evt = new TimerEvent(heartbeatTick, heartbeat.Interval, heartbeat);
         timerService.AddEvent(evt);
         _events.Add(heartbeat, evt);
     }
 }