예제 #1
0
        private static void RunInConsole()
        {
            var settings = new Settings();

            var checker = new FileCheker(settings.Period, settings.SmtpHost, settings.SmtpUser, settings.SmtpPassword, settings.FromEmail, settings.ReportEmail, settings.Files.Cast<string>().ToArray());
            checker.Start();
        }
예제 #2
0
        private static void RunInConsole()
        {
            var settings = new Settings();

            var checker = new FileCheker(settings.Period, settings.SmtpHost, settings.SmtpUser, settings.SmtpPassword, settings.FromEmail, settings.ReportEmail, settings.Files.Cast <string>().ToArray());

            checker.Start();
        }
예제 #3
0
        protected override void OnStop()
        {
            if(_fileCheker == null)
            {
                return;
            }

            _fileCheker.Stop();
            _fileCheker = null;
        }
예제 #4
0
파일: Service.cs 프로젝트: jorik041/ForDen
        protected override void OnStop()
        {
            if (_fileCheker == null)
            {
                return;
            }

            _fileCheker.Stop();
            _fileCheker = null;
        }
예제 #5
0
        protected override void OnStart(string[] args)
        {
            if (_fileCheker != null)
            {
                return;
            }

            var settings = new Settings();
            settings.Reload();

            _fileCheker = new FileCheker(settings.Period, settings.SmtpHost, settings.SmtpUser, settings.SmtpPassword, settings.FromEmail, settings.ReportEmail, settings.Files.Cast<string>().ToArray());
            _fileCheker.Start();
        }
예제 #6
0
파일: Service.cs 프로젝트: jorik041/ForDen
        protected override void OnStart(string[] args)
        {
            if (_fileCheker != null)
            {
                return;
            }

            var settings = new Settings();

            settings.Reload();

            _fileCheker = new FileCheker(settings.Period, settings.SmtpHost, settings.SmtpUser, settings.SmtpPassword, settings.FromEmail, settings.ReportEmail, settings.Files.Cast <string>().ToArray());
            _fileCheker.Start();
        }