Esempio n. 1
0
 public ServiceBase(TaskScheduler taskScheduler = null)
 {
     _scheduler    = taskScheduler ?? TaskScheduler.Default;
     _runner       = _scheduler.ToContextRunner();
     _initLazy     = new AsyncLazyInit(_init);
     _shutDownLazy = new AsyncLazyInit(_shutDown);
 }
Esempio n. 2
0
 public BootstrapperBase()
 {
     _services       = new HashSet <Type>();
     _servicesToInit = new HashSet <Type>();
     _shutDownLazy   = new AsyncLazyInit(_shutDown);
 }