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
             _physicianLicenseService?.Dispose();
             _lookupService?.Dispose();
             _uclService?.Dispose();
         }
         disposed = true;
     }
     base.Dispose(disposing);
 }
Exemple #2
0
        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);
        }