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();
            }
        }
Exemple #2
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();
            }
        }