예제 #1
0
 public static LogisticsPlugins Instance()
 {
     if (instance == null)
     {
         lock (LockHelper)
         {
             if (instance == null)
             {
                 instance = new LogisticsPlugins();
             }
         }
     }
     instance.VerifyIndex();
     return(instance);
 }
예제 #2
0
 public static LogisticsPlugins Instance()
 {
     if (instance == null)
     {
         lock (LockHelper)
         {
             if (instance == null)
             {
                 instance = new LogisticsPlugins();
             }
         }
     }
     instance.VerifyIndex();
     return instance;
 }
예제 #3
0
 public static LogisticsPlugins Instance()
 {
     if (LogisticsPlugins.instance == null)
     {
         object lockHelper;
         Monitor.Enter(lockHelper = LogisticsPlugins.LockHelper);
         try
         {
             if (LogisticsPlugins.instance == null)
             {
                 LogisticsPlugins.instance = new LogisticsPlugins();
             }
         }
         finally
         {
             Monitor.Exit(lockHelper);
         }
     }
     LogisticsPlugins.instance.VerifyIndex();
     return(LogisticsPlugins.instance);
 }