예제 #1
0
        public void StdServiceJobManager_Repeat_Start_Stop() {
            using(var jobManager = new StdServiceJobManager()) {
                jobManager.Start();
                Assert.IsTrue(jobManager.IsStarted);

                Thread.Sleep(5 * 1000);

                jobManager.Shutdown();
                Assert.IsFalse(jobManager.IsStarted);

                Thread.Sleep(10);

                jobManager.Start();
                Assert.IsTrue(jobManager.IsStarted);

                Thread.Sleep(3 * 1000);
            }
        }
예제 #2
0
        public void StdServiceJobManager_Disposable() {
            using(var jobManager = new StdServiceJobManager()) {
                jobManager.Start();

                Assert.IsTrue(jobManager.IsStarted);

                Thread.Sleep(5 * 1000);
            }
        }
예제 #3
0
        public void StdServiceJobManager_Repeat_Start_Stop()
        {
            using (var jobManager = new StdServiceJobManager()) {
                jobManager.Start();
                Assert.IsTrue(jobManager.IsStarted);

                Thread.Sleep(5 * 1000);

                jobManager.Shutdown();
                Assert.IsFalse(jobManager.IsStarted);

                Thread.Sleep(10);

                jobManager.Start();
                Assert.IsTrue(jobManager.IsStarted);

                Thread.Sleep(3 * 1000);
            }
        }
예제 #4
0
        public void StdServiceJobManager_Disposable()
        {
            using (var jobManager = new StdServiceJobManager()) {
                jobManager.Start();

                Assert.IsTrue(jobManager.IsStarted);

                Thread.Sleep(5 * 1000);
            }
        }