Ejemplo n.º 1
0
        /// <summary>
        /// Disposes the managed resources.
        /// </summary>
        protected override void DisposeManaged()
        {
            _log.Flush();

            _userService.Dispose();
            _achievementService.Dispose();
        }
Ejemplo n.º 2
0
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                _achievementService.Dispose();
            }

            base.Dispose(disposing);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Releases unmanaged and - optionally - managed resources
        /// </summary>
        /// <param name="disposing"><c>true</c> to release both managed and unmanaged resources; <c>false</c> to release only unmanaged resources.</param>
        protected virtual void Dispose(bool disposing)
        {
            lock (this)
            {
                if (disposing)
                {
                    _log.Flush();

                    _userService.Dispose();
                    _achievementService.Dispose();
                }
            }
        }
Ejemplo n.º 4
0
        /// <summary>
        /// Releases unmanaged and - optionally - managed resources
        /// </summary>
        /// <param name="disposing"><c>true</c> to release both managed and unmanaged resources; <c>false</c> to release only unmanaged resources.</param>
        protected virtual void Dispose(bool disposing)
        {
            lock (this)
            {
                if (disposing)
                {
                    _log.Log("SQL:");
                    _log.Log(_achievementManagerLog.ToString());

                    _userService.Dispose();
                    _achievementService.Dispose();
                }
            }
        }
Ejemplo n.º 5
0
        public override void Dispose()
        {
            _achievementService.Dispose();

            base.Dispose();
        }