예제 #1
0
        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);
            }
        }
예제 #2
0
        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);
            }
        }