Пример #1
0
 private static void InitOpenTopoDataService()
 {
     try
     {
         if (Tools.UseOpenTopoData())
         {
             Thread threadOpenTopoDataService = new Thread(() =>
             {
                 OpenTopoDataService.GetSingleton().Run();
             })
             {
                 Name = "OpenTopoServiceThread"
             };
             threadOpenTopoDataService.Start();
         }
         else
         {
             Logfile.Log("OpenTopoData disabled (enable in settings)");
         }
     }
     catch (Exception ex)
     {
         Logfile.Log(ex.ToString());
     }
 }
 public static OpenTopoDataService GetSingleton()
 {
     if (_OpenTopoDataService == null)
     {
         _OpenTopoDataService = new OpenTopoDataService();
     }
     return(_OpenTopoDataService);
 }