Ejemplo n.º 1
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         // Free managed resources
         if (emailManager != null)
         {
             emailManager.Dispose();
             emailManager = null;
         }
         if (emailAccountRepository != null)
         {
             emailAccountRepository.Dispose();
             emailAccountRepository = null;
         }
         if (adminUserRepository != null)
         {
             adminUserRepository.Dispose();
             adminUserRepository = null;
         }
         if (applicationUserRepository != null)
         {
             applicationUserRepository.Dispose();
             applicationUserRepository = null;
         }
     }
 }
Ejemplo n.º 2
0
        public void Dispose()
        {
            if (!_disposed)
            {
                _internalContentRepository.Dispose();
                _applicationUserRepository.Dispose();
                _disposed = true;
            }

            GC.SuppressFinalize(this);
        }
Ejemplo n.º 3
0
 public void Dispose()
 {
     _applicationUserRepository.Dispose();
 }