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