public void EnableDiagnostic() { _workCoordinatorService = this.Services.GetService<IWorkCoordinatorRegistrationService>(); if (_workCoordinatorService != null) { _workCoordinatorService.Register(this); } }
public void EnableDiagnostic() { _workCoordinatorService = this.Services.GetService <IWorkCoordinatorRegistrationService>(); if (_workCoordinatorService != null) { _workCoordinatorService.Register(this); } }
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); }
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); }
protected override void Dispose(bool finalize) { base.Dispose(finalize); if (_workCoordinatorService != null) { _workCoordinatorService.Unregister(this); _workCoordinatorService = null; } this.ClearSolution(); }
internal void StartSolutionCrawler() { if (_workCoordinatorService == null) { lock (this) { if (_workCoordinatorService == null) { _workCoordinatorService = this.Services.GetService<IWorkCoordinatorRegistrationService>(); _workCoordinatorService.Register(this); } } } }
internal void StopSolutionCrawler() { if (_workCoordinatorService != null) { lock (this) { if (_workCoordinatorService != null) { _workCoordinatorService.Unregister(this, blockingShutdown: true); _workCoordinatorService = null; } } } }
internal void StartSolutionCrawler() { if (_workCoordinatorService == null) { lock (this) { if (_workCoordinatorService == null) { _workCoordinatorService = this.Services.GetService <IWorkCoordinatorRegistrationService>(); _workCoordinatorService.Register(this); } } } }