Create() 공개 정적인 메소드

public static Create ( List deviceInfos ) : void
deviceInfos List
리턴 void
예제 #1
0
        private void BackupTimer_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
        {
            var timer = (System.Timers.Timer)sender;

            timer.Interval = BACKUP_INTERVAL;

            Backup.Create(Data.DeviceInfos.ToList());
        }
예제 #2
0
        public void Stop()
        {
            if (stop != null)
            {
                stop.Set();
            }

            if (listener != null)
            {
                try
                {
                    listener.Stop();
                    listener.Close();
                }
                catch (Exception ex) { }
            }

            StopBackupTimer();
            Backup.Create(Data.DeviceInfos.ToList());

            logger.Warn("Local Data Server Stopped");
        }