public void Dispose()
        {
            _dteWithEvents.OnBuildDone -= BuildEventsOnOnBuildDone;
            SaveStepMap();

            GherkinProcessingScheduler.Dispose();
            if (_appConfigTracker != null)
            {
                _appConfigTracker.FileChanged    -= ConfigFileTrackerOnFileChanged;
                _appConfigTracker.FileOutOfScope -= ConfigFileTrackerOnFileOutOfScope;
                _appConfigTracker.Dispose();
            }
            if (_specflowJsonTracker != null)
            {
                _specflowJsonTracker.FileChanged    -= ConfigFileTrackerOnFileChanged;
                _specflowJsonTracker.FileOutOfScope -= ConfigFileTrackerOnFileOutOfScope;
                _specflowJsonTracker.Dispose();
            }
            if (_stepSuggestionProvider != null)
            {
                _stepSuggestionProvider.Dispose();
            }
            if (_featureFilesTracker != null)
            {
                _featureFilesTracker.Ready -= FeatureFilesTrackerOnReady;
                _featureFilesTracker.Dispose();
            }
            if (_bindingFilesTracker != null)
            {
                _bindingFilesTracker.Dispose();
            }
        }
        public void Dispose()
        {
            dteWithEvents.OnBuildDone -= BuildEventsOnOnBuildDone;
            SaveStepMap();

            GherkinProcessingScheduler.Dispose();
            if (appConfigTracker != null)
            {
                appConfigTracker.FileChanged    -= AppConfigTrackerOnFileChanged;
                appConfigTracker.FileOutOfScope -= AppConfigTrackerOnFileOutOfScope;
                appConfigTracker.Dispose();
            }
            if (stepSuggestionProvider != null)
            {
                stepSuggestionProvider.Dispose();
            }
            if (featureFilesTracker != null)
            {
                featureFilesTracker.Ready -= FeatureFilesTrackerOnReady;
                featureFilesTracker.Dispose();
            }
            if (bindingFilesTracker != null)
            {
                bindingFilesTracker.Dispose();
            }
        }
Ejemplo n.º 3
0
        public void Dispose()
        {
            GherkinProcessingScheduler.Dispose();
            if (appConfigTracker != null)
            {
                appConfigTracker.FileChanged    -= AppConfigTrackerOnFileChanged;
                appConfigTracker.FileOutOfScope -= AppConfigTrackerOnFileOutOfScope;
                appConfigTracker.Dispose();
            }
            if (stepSuggestionProvider != null)
            {
                stepSuggestionProvider.Dispose();
            }
            if (featureFilesTracker != null)
            {
                featureFilesTracker.Ready -= FeatureFilesTrackerOnReady;
                featureFilesTracker.Dispose();
            }
            if (bindingFilesTracker != null)
            {
//                bindingFilesTracker.Initialized -= FeatureFilesTrackerOnInitialized;
                bindingFilesTracker.Dispose();
            }
        }