개정판 150747cb
issue #0001: ServiceStation db 접속 불가시 종료현상 수정
Change-Id: I2eb4839e429fdbb65c3491ff40cdbe39f7d1bce1
ConvertService/ServiceBase/Markus.Service.Station/StationService/ServiceStationTask.cs | ||
---|---|---|
298 | 298 |
/// </summary> |
299 | 299 |
private async void CleanUpDataBaseItems() |
300 | 300 |
{ |
301 |
using (DataBase.ConvertDatabase database = new DataBase.ConvertDatabase(MarkusDBConnectionString))
|
|
301 |
try
|
|
302 | 302 |
{ |
303 |
var items = database.GetConvertingItems(RunProjectList); |
|
303 |
using (DataBase.ConvertDatabase database = new DataBase.ConvertDatabase(MarkusDBConnectionString)) |
|
304 |
{ |
|
305 |
var items = database.GetConvertingItems(RunProjectList); |
|
304 | 306 |
|
305 |
List< WcfClient.StationServiceTask.ConvertItem> aliveItems = new List<WcfClient.StationServiceTask.ConvertItem>(); |
|
307 |
List< WcfClient.StationServiceTask.ConvertItem> aliveItems = new List<WcfClient.StationServiceTask.ConvertItem>();
|
|
306 | 308 |
|
307 |
try |
|
308 |
{ |
|
309 | 309 |
foreach (var item in StationServiceList.Where(x => x.IsOnline)) |
310 | 310 |
{ |
311 | 311 |
var serviceItems = await item.Service.AliveConvertListAsync(); |
... | ... | |
319 | 319 |
database.SetCleanUpItem(item.ID,0); |
320 | 320 |
} |
321 | 321 |
} |
322 |
|
|
322 | 323 |
} |
323 |
catch (Exception ex)
|
|
324 |
{
|
|
325 |
System.Diagnostics.Debug.WriteLine(ex.ToString());
|
|
326 |
}
|
|
324 |
}
|
|
325 |
catch (Exception ex)
|
|
326 |
{
|
|
327 |
throw new Exception("CleanUpDataBaseItems Error ", ex);
|
|
327 | 328 |
} |
328 | 329 |
} |
329 | 330 |
|
내보내기 Unified diff