Exemple #1
0
 public ClockService()
 {
     if (OperationContext.Current != null)
     {
         _callback = OperationContext.Current.GetCallbackChannel <IClockCallback>();
     }
 }
Exemple #2
0
 public Monitor(IClockCallback callback)
 {
     _callback = callback;
     _thread   = new Thread(Loop);
 }