프로젝트

일반

사용자정보

개정판 150747cb

ID150747cb048b1fe4bd3fd6f99b4a1e2e3b889954
상위 db0d3db3
하위 683a4a8f

김태성이(가) 5년 이상 전에 추가함

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

클립보드 이미지 추가 (최대 크기: 500 MB)