예제 #1
0
        /// <summary>
        /// Disposes the projections found by the scanner.
        /// </summary>
        public void Dispose()
        {
            using (LogGroup logGroup = LogGroup.StartDebug("Disposing the projections."))
            {
                if (ProjectionState.IsInitialized)
                {
                    ProjectionStateCollection projections = ProjectionState.GetProjections(false);

                    LogWriter.Debug("Total projections: " + projections.Count.ToString());

                    Dispose(projections);

                    ProjectionState.Projections = null;
                }
            }
        }