Пример #1
0
       public static JobExecution GetInstance()
       {
           if (instance == null)
               instance = new JobExecution();

           return instance;
       }
Пример #2
0
        public static JobExecution GetInstance()
        {
            if (instance == null)
            {
                instance = new JobExecution();
            }

            return(instance);
        }
Пример #3
0
        public void Execute(JobExecutionContext context)
        {
            Thread.Sleep(4000);
            JobExecution jobExecution = JobExecution.GetInstance();

            jobExecution.Executions.Add(new ExecutionLog()
            {
                Date = DateTime.Now.ToUniversalTime(), Message = "A job was executed."
            });
        }
Пример #4
0
 public void MyTestInitialize() 
 {
     this.jobExecution = JobExecution.GetInstance();
     jobExecution.Executions.Clear();
 }