Beispiel #1
0
        /// <summary>
        /// Returns the global JoinableTaskContext.
        /// </summary>
        virtual public JoinableTaskContext GetJoinableTaskContext()
        {
            var componentModel         = (IComponentModel)GetGlobalService(typeof(SComponentModel));
            var projectServiceAccessor = componentModel.GetService <IProjectServiceAccessor>();
            var projectService         = projectServiceAccessor.GetProjectService();

            return(ProjectSystemLoader.CreateProjectServiceAdapter(projectService).GetContext());
        }
        public GameletDebugger(ConfiguredProject configuredProject)
            : base(configuredProject)
        {
            var serviceManager = new ServiceManager();
            var dialogUtil     = new DialogUtil();
            var compRoot       = new GgpDebugQueryTargetCompRoot(serviceManager, dialogUtil);

            serviceManager.GetJoinableTaskContext().ThrowIfNotOnMainThread();
            project             = ProjectSystemLoader.CreateAsyncProject(configuredProject);
            ggpDebugQueryTarget = compRoot.Create();
        }