Exemple #1
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         db.Dispose();
     }
     base.Dispose(disposing);
 }
Exemple #2
0
        /// <summary>
        /// Override Dispose
        /// </summary>
        /// <param name="disposing"></param>
        protected override void Dispose(bool disposing)
        {
            // If already disposed return immediately
            if (disposed)
            {
                return;
            }

            if (disposing)
            {
                // Dispose the LicensingContext
                if (db != null)
                {
                    db.Dispose();
                }
            }

            disposed = true;

            base.Dispose(disposing);
        }