コード例 #1
0
 public static void Release()
 {
     if (--refcount == 0) {
         monitor.SystemClockChanged -= SystemClockChanged;
         monitor = null;
     }
 }
コード例 #2
0
 public static void Release()
 {
     if (--refcount == 0)
     {
         monitor.SystemClockChanged -= SystemClockChanged;
         monitor = null;
     }
 }
コード例 #3
0
 public static void AddRef()
 {
     if (monitor == null) {
         monitor = new PeriodicTimerSystemClockMonitor (TimeSpan.FromSeconds (10));
         monitor.SystemClockChanged += SystemClockChanged;
     }
     refcount++;
 }
コード例 #4
0
 public static void AddRef()
 {
     if (monitor == null)
     {
         monitor = new PeriodicTimerSystemClockMonitor(TimeSpan.FromSeconds(10));
         monitor.SystemClockChanged += SystemClockChanged;
     }
     refcount++;
 }