예제 #1
0
 public Time(ITime time) : this()
 {
     if (time != null)
     {
         _Time = time;
         _Request.Reset();
         _Time.GetTick().OnValue += _Timing;
     }
 }
예제 #2
0
파일: Time.cs 프로젝트: jiowchern/Regulus
 public Time(ITime time)
     : this()
 {
     if(time != null)
     {
         _Time = time;
         _Request.Reset();
         _Time.GetTick().OnValue += _Timing;
     }
 }
예제 #3
0
 public Time()
 {
     _TimingTimer = new Timer(
         new TimeSpan(0, 1, 0),
         current =>
     {
         if (_Time != null)
         {
             _Request.Reset();
             _Time.GetTick().OnValue += _Timing;
         }
     });
 }