private static void RefreshStoredInterfaces() { var connectionInfo = GetDomainConnectionInfo(); foreach (var c in connectionInfo) { if (StoredSqlInterfaces.FirstOrDefault(x => x.ConnectionString == c.ConnectionString) != null) { continue; } var newInterface = new SqlInterface { Name = c.Subdomain, ConnectionString = c.ConnectionString, Rem = ForcedRem }; StoredSqlInterfaces.Add(newInterface); } }
private static void RefreshStoredInterfaces() { var connectionInfo = GetDomainConnectionInfo(); foreach (var c in connectionInfo) { if (StoredSqlInterfaces.FirstOrDefault(x => x.ConnectionString == c.ConnectionString) != null) continue; var newInterface = new SqlInterface { Name = c.Subdomain, ConnectionString = c.ConnectionString, Rem = ForcedRem }; StoredSqlInterfaces.Add(newInterface); } }