protected override void Dispose(bool disposing) { if (disposing) { db.Dispose(); } base.Dispose(disposing); }
/// <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); }