public void ForceServerUpdatesReload()
        {
            try
            {
                // corrupted state. Refresh all updates:
                var con = _connection ?? _connectionRepo.GetConnection();

                if (con != null)
                {
                    con.LastUpdated = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc);
                    _connectionRepo.Update(con);
                    _context.SaveChanges();
                }
            }
            catch (Exception ex)
            {
                Logger.WriteException(ex, "Cannot reset Last Updated server date.");
            }
        }
 public IndustryCategoryProviders()
 {
     dbConnection = connManager.GetConnection();
 }
 public CompanyDetailsProvider()
 {
     dbConnection = connManager.GetConnection();
 }
Exemplo n.º 4
0
 public UserDetailsProvider()
 {
     dbConnection = connManager.GetConnection();
 }
 public UserAuthenticationProvider()
 {
     dbConnection = connManager.GetConnection();
 }