コード例 #1
0
ファイル: PreviewWorkspace.cs プロジェクト: elemk0vv/roslyn-1
 public void EnableDiagnostic()
 {
     _workCoordinatorService = this.Services.GetService<IWorkCoordinatorRegistrationService>();
     if (_workCoordinatorService != null)
     {
         _workCoordinatorService.Register(this);
     }
 }
コード例 #2
0
 public void EnableDiagnostic()
 {
     _workCoordinatorService = this.Services.GetService <IWorkCoordinatorRegistrationService>();
     if (_workCoordinatorService != null)
     {
         _workCoordinatorService.Register(this);
     }
 }
コード例 #3
0
        internal InteractiveWorkspace(InteractiveEvaluator engine, HostServices hostServices)
            : base(hostServices, "Interactive")
        {
            this.Engine = engine;

            // register work coordinator for this workspace
            _workCoordinatorService = this.Services.GetService <IWorkCoordinatorRegistrationService>();
            _workCoordinatorService.Register(this);
        }
コード例 #4
0
        internal InteractiveWorkspace(InteractiveEvaluator engine, HostServices hostServices)
            : base(hostServices, "Interactive")
        {
            this.Engine = engine;

            // register work coordinator for this workspace
            _workCoordinatorService = this.Services.GetService<IWorkCoordinatorRegistrationService>();
            _workCoordinatorService.Register(this);
        }
コード例 #5
0
        protected override void Dispose(bool finalize)
        {
            base.Dispose(finalize);

            if (_workCoordinatorService != null)
            {
                _workCoordinatorService.Unregister(this);
                _workCoordinatorService = null;
            }

            this.ClearSolution();
        }
コード例 #6
0
 internal void StartSolutionCrawler()
 {
     if (_workCoordinatorService == null)
     {
         lock (this)
         {
             if (_workCoordinatorService == null)
             {
                 _workCoordinatorService = this.Services.GetService<IWorkCoordinatorRegistrationService>();
                 _workCoordinatorService.Register(this);
             }
         }
     }
 }
コード例 #7
0
 internal void StopSolutionCrawler()
 {
     if (_workCoordinatorService != null)
     {
         lock (this)
         {
             if (_workCoordinatorService != null)
             {
                 _workCoordinatorService.Unregister(this, blockingShutdown: true);
                 _workCoordinatorService = null;
             }
         }
     }
 }
コード例 #8
0
 internal void StartSolutionCrawler()
 {
     if (_workCoordinatorService == null)
     {
         lock (this)
         {
             if (_workCoordinatorService == null)
             {
                 _workCoordinatorService = this.Services.GetService <IWorkCoordinatorRegistrationService>();
                 _workCoordinatorService.Register(this);
             }
         }
     }
 }
コード例 #9
0
ファイル: PreviewWorkspace.cs プロジェクト: elemk0vv/roslyn-1
        protected override void Dispose(bool finalize)
        {
            base.Dispose(finalize);

            if (_workCoordinatorService != null)
            {
                _workCoordinatorService.Unregister(this);
                _workCoordinatorService = null;
            }

            this.ClearSolution();
        }
コード例 #10
0
 internal void StopSolutionCrawler()
 {
     if (_workCoordinatorService != null)
     {
         lock (this)
         {
             if (_workCoordinatorService != null)
             {
                 _workCoordinatorService.Unregister(this, blockingShutdown: true);
                 _workCoordinatorService = null;
             }
         }
     }
 }