private bool disposed = false; // to detect redundant calls protected override void Dispose(bool disposing) { if (!disposed) { if (disposing) { // dispose-only, i.e. non-finalizable logic _PhysicianStatusService?.Dispose(); } disposed = true; } base.Dispose(disposing); }
private bool disposed = false; // to detect redundant calls protected override void Dispose(bool disposing) { if (!disposed) { if (disposing) { // dispose-only, i.e. non-finalizable logic _adminService?.Dispose(); _physicianService?.Dispose(); _physicianStatus?.Dispose(); _physicianStatusLogService?.Dispose(); _userLogService?.Dispose(); _alarmTuneService?.Dispose(); } disposed = true; } base.Dispose(disposing); }
private bool disposed = false; // to detect redundant calls protected override void Dispose(bool disposing) { if (!disposed) { if (disposing) { _adminService?.Dispose(); _physicianService?.Dispose(); _physicianStatus?.Dispose(); _physicianStatusLogService?.Dispose(); _userLogService?.Dispose(); _physicianLicenseService?.Dispose(); _facilityPhysicianService?.Dispose(); _UserProfileService?.Dispose(); } disposed = true; } base.Dispose(disposing); }