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