Exemplo n.º 1
0
        protected virtual void Dispose(bool disposing)
        {
            if (!_disposed)
            {
                if (disposing)
                {
                    if (QueryResults != null)
                    {
                        QueryResults.Dispose();
                        QueryResults = null;
                    }

                    ProcedureEvents    = null;
                    EnginePerformances = null;
                    AggregationsReads  = null;
                    PartitionsReads    = null;
                    CachesReads        = null;
                    Performances       = null;
                    Profilers          = null;

                    GC.Collect(); // TODO: verificare se serve
                }

                _disposed = true;
            }
        }