protected override void Dispose(bool disposing) { if (RavenSession != null) { RavenSession.Dispose(); } base.Dispose(disposing); }