Esempio n. 1
0
        /// <summary>
        /// Release phase of MainDom
        /// </summary>
        /// <remarks>
        /// This will execute on a threadpool thread
        /// </remarks>
        private void MainDomRelease()
        {
            _logger.LogDebug("Releasing from MainDom...");

            lock (_storesLock)
            {
                _logger.LogDebug("Releasing content store...");
                _contentStore?.ReleaseLocalDb(); // null check because we could shut down before being assigned
                _localContentDb = null;

                _logger.LogDebug("Releasing media store...");
                _mediaStore?.ReleaseLocalDb(); // null check because we could shut down before being assigned
                _localMediaDb = null;

                _logger.LogInformation("Released from MainDom");
            }
        }