protected virtual void Dispose(bool disposing) { if (disposing) { if (_unit != null) { _unit.Dispose(); } } }