protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         _userLogService?.Dispose();
         if (_userManager != null)
         {
             _userManager.Dispose();
             _userManager = null;
         }
     }
     base.Dispose(disposing);
 }
示例#2
0
        protected override void Dispose(bool disposing)
        {
            if (!disposed)
            {
                if (disposing)
                {
                    _alarmService?.Dispose();
                    _alarmTuneService?.Dispose();
                    _userLogService?.Dispose();
                    _userPassResetService?.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);
 }
示例#4
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);
        }