Пример #1
0
 protected override void ServerTerminate( )
 {
     Logr.Log("~A RTDServer.ServerTerminate");
     // Clear down any running timers...
     CronManager.Instance( ).Clear( );
     s_Instances.Remove(this);
 }
Пример #2
0
 public static CronManager Instance( )
 {
     // Unlikley that two threads will attempt to instance this singleton at the
     // same time, but we'll lock just in case.
     lock (s_InstanceLock) {
         if (s_Instance == null)
         {
             s_Instance = new CronManager( );
         }
         return(s_Instance);
     }
 }