|
@@ -51,7 +51,14 @@ namespace Pas.ScadaService
|
|
};
|
|
};
|
|
_scada.Start();
|
|
_scada.Start();
|
|
Thread.Sleep(3000);
|
|
Thread.Sleep(3000);
|
|
- GopTimeCalc.Load(config, sqlConn, GetAllData());
|
|
|
|
|
|
+ try
|
|
|
|
+ {
|
|
|
|
+ GopTimeCalc.Load(config, sqlConn, GetAllData());
|
|
|
|
+ }
|
|
|
|
+ catch (Exception e)
|
|
|
|
+ {
|
|
|
|
+ XTrace.Log.Error(e.ToString());
|
|
|
|
+ }
|
|
_isStart = true;
|
|
_isStart = true;
|
|
}
|
|
}
|
|
private static List<Model.Data> GetAllData()
|
|
private static List<Model.Data> GetAllData()
|