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