protected virtual void Dispose(bool disposing) { if (_disposed) { return; } if (disposing) { // free other managed objects that implement // IDisposable only if (_context != null) { _context.Dispose(); } } // release any unmanaged objects // set thick object references to null _context = null; _disposed = true; }
public void Dispose() { _context.Dispose(); }
public void Dispose() { _eventStoreContext.Dispose(); }