Exemplo n.º 1
0
 public FastJobThread(IFastJobScheduler scheduler)
 {
     this.scheduler = scheduler;
     this.thread    = new Thread(new ThreadStart(this.Main));
     this.thread.Start();
 }
Exemplo n.º 2
0
 /// <summary>
 /// Runs the scheduler on a new thread that is stopped when the returned handle is disposed.
 /// </summary>
 /// <param name="scheduler">The job scheduler to run.</param>
 /// <returns>A handle that stops the scheduler when disposed.</returns>
 public static IDisposable Run(IFastJobScheduler scheduler)
 {
     return(new FastJobThread(scheduler));
 }
Exemplo n.º 3
0
 public JobStartup(IFastJobScheduler scheduler)
 {
     this.scheduler  = scheduler;
     this.disposable = FastJobs.Run(scheduler);
 }