protected void InitializeTaskManager() { TaskManager = new TaskManager(); SyncContext = new ThreadSynchronizationContext(TaskManager.Token); TaskManager.UIScheduler = new SynchronizationContextTaskScheduler(SyncContext); ApplicationManager = new ApplicationManagerBase(SyncContext, Environment); }
protected override ITaskManager InitializeTaskManager() { TaskManager = base.InitializeTaskManager(); ApplicationManager = new ApplicationManagerBase(SyncContext, Environment); return(TaskManager); }