示例#1
0
 public ApplicationManagerBase(SynchronizationContext synchronizationContext)
 {
     SynchronizationContext = synchronizationContext;
     SynchronizationContext.SetSynchronizationContext(SynchronizationContext);
     ThreadingHelper.SetUIThread();
     UIScheduler = TaskScheduler.FromCurrentSynchronizationContext();
     ThreadingHelper.MainThreadScheduler = UIScheduler;
     TaskManager = new TaskManager(UIScheduler);
 }
        public ApplicationManagerBase(SynchronizationContext synchronizationContext, IEnvironment environment)
        {
            UIScheduler = ThreadingHelper.GetUIScheduler(synchronizationContext);

            SynchronizationContext = synchronizationContext;
            ThreadingHelper.SetUIThread();
            ThreadingHelper.MainThreadScheduler = UIScheduler;

            Environment    = environment;
            TaskManager    = new TaskManager(UIScheduler);
            Platform       = new Platform(Environment);
            ProcessManager = new ProcessManager(Environment, Platform.GitEnvironment, TaskManager.Token);
            GitClient      = new GitClient(Environment, ProcessManager, TaskManager.Token);
        }