프로젝트

일반

사용자정보

개정판 ff4b1e6e

IDff4b1e6ecae92cf17ac75f7d78674deee4ccd0f8
상위 c517099d
하위 0630b634

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

데이터베이스 nuget으로 변경

Change-Id: I6167ddf20d4cdae727b0d9047dec4fdad0dcf81a

차이점 보기:

ConvertService/ServiceBase/Markus.Service.Station/ServiceStation.cs
27 27
        protected ILog logger = LogManager.GetLogger(typeof(ServiceStation));
28 28
        protected ServiceHost gWcfServiceHost;
29 29

  
30
        System.Timers.Timer timer;
30
        private static System.Timers.Timer timer;
31 31
        
32 32
        private int MultiProcessCount = 1;
33 33
        private string ServiceID;
......
170 170

  
171 171
        private void Timer_Elapsed(object sender, ElapsedEventArgs e)
172 172
        {
173
            timer.Stop();
173
     
174
            System.Diagnostics.Debug.WriteLine("timer : " + e.SignalTime);
174 175
            try
175 176
            {
176 177
                if (!IsReleaseItems)
......
184 185
            {
185 186
                logger.Error("Timer Error " ,ex);
186 187
            }
187
            System.Threading.Thread.SpinWait(10000);
188

  
189
            System.Threading.Thread.SpinWait(1000);
188 190

  
189 191
            timer.Start();
190 192
        }
......
203 205

  
204 206
                if (IsStation)
205 207
                {
206
                    System.Diagnostics.Debug.WriteLine("ReflashSubService");
207
                    ReflashSubService();
208
                    System.Diagnostics.Debug.WriteLine("ReflashSubService");
209

  
210
                    System.Diagnostics.Debug.WriteLine("CleanUpDataBaseItems");
211
                    CleanUpDataBaseItems();
212
                    System.Diagnostics.Debug.WriteLine("setDataBaseWaitingList");
213
                    setDataBaseWaitingList();
214
                    System.Diagnostics.Debug.WriteLine("ReleaseItems end");
208
                    if (IsDataBaseWaitingList(1))
209
                    {
210
                        System.Diagnostics.Debug.WriteLine("ReleaseItems start");
211
                        ReflashSubService();
212
                        CleanUpDataBaseItems();
213
                        setDataBaseWaitingList();
214
                        System.Diagnostics.Debug.WriteLine("ReleaseItems end");
215
                    }
215 216
                }
216 217
            }
217 218
            catch (Exception ex)
......
340 341

  
341 342

  
342 343
            logger.Info("Start ServiceStation");
343

  
344
            timer = new System.Timers.Timer(1000);// new TimeSpan(0,0,0,10).TotalMilliseconds);
344
            
345
            timer = new System.Timers.Timer(new TimeSpan(0,0,0,10).TotalMilliseconds);
345 346
            timer.Elapsed += Timer_Elapsed;
346 347
            timer.AutoReset = true;
347 348
            timer.Start();
......
365 366
                        {
366 367
                            BasicHttpBinding myBinding = new BasicHttpBinding();
367 368
                            EndpointAddress myEndpoint = new EndpointAddress(UriHelper.UriCreate(prop.SERVICE_ADDRESS));
368
                            var StationServiceClient = new WcfClient.StationServiceAsync.StationServiceClient(myBinding, myEndpoint);
369
                            var StationServiceClient = new WcfClient.StationServiceTask.StationServiceClient(myBinding, myEndpoint);
369 370
                        
370 371
                       
371 372
                                //var items = StationServiceClient.AliveConvertList();

내보내기 Unified diff

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