Exemplo n.º 1
0
        /// <summary>
        ///     Free Managed Ressources. Typically by calling Dispose on them
        /// </summary>
        protected override void DisposeManagedRessources()
        {
            if (_reportsService != null)
            {
                _reportsService.Dispose();
                _reportsService = null;
            }

            if (_metadataService != null)
            {
                _metadataService.Dispose();
                _metadataService = null;
            }

            if (_settingsService != null)
            {
                _settingsService.Dispose();
                _settingsService = null;
            }

            if (_securityService != null)
            {
                _securityService.Dispose();
                _securityService = null;
            }

            if (_dataService != null)
            {
                _dataService.Dispose();
                _dataService = null;
            }

            base.DisposeManagedRessources();
        }