public static void Release() { if (--refcount == 0) { monitor.SystemClockChanged -= SystemClockChanged; monitor = null; } }
public static void AddRef() { if (monitor == null) { monitor = new PeriodicTimerSystemClockMonitor (TimeSpan.FromSeconds (10)); monitor.SystemClockChanged += SystemClockChanged; } refcount++; }
public static void AddRef() { if (monitor == null) { monitor = new PeriodicTimerSystemClockMonitor(TimeSpan.FromSeconds(10)); monitor.SystemClockChanged += SystemClockChanged; } refcount++; }