public void Dispose() { _disposing = true; if (!_session?.IsDisposing ?? false) { _session.Dispose(); } _session = null; }