예제 #1
0
 public static TimeManager InstanceOf(GlobalConfigDetails globalConfig)
 {
     if (_instance == null)
     {
         lock (s_lock)
         {
             if (_instance == null)
             {
                 _instance = new TimeManager();
                 _instance.globalConfig = globalConfig;
                 RefreshNamedSchedules();
                 EnableNamedScheduleReload();
             }
         }
     }
     return _instance;
 }
예제 #2
0
 public static TimeManager InstanceOf()
 {
     if (_instance == null)
     {
         lock (s_lock)
         {
             if (_instance == null)
                 _instance = new TimeManager();
         }
     }
     return _instance;
 }