private void Dispose(bool disposing) { lock (sync) { if (disposing) { connection.RevertPrincipal(); } } }