Ejemplo n.º 1
0
        public static void EnsureUniqueDbAndUrl(List <ExternalReplication> watchers, ExternalReplication watcher)
        {
            var dbName = watcher.Database;
            var url    = watcher.Url;

            foreach (var w in watchers)
            {
                if (w.Database != dbName || w.Url != url)
                {
                    continue;
                }
                watchers.Remove(watcher);
                return;
            }
        }
Ejemplo n.º 2
0
        public static void EnsureUniqueDbAndConnectionString(List <ExternalReplication> watchers, ExternalReplication watcher)
        {
            var dbName           = watcher.Database;
            var connecitonString = watcher.ConnectionStringName;

            foreach (var w in watchers)
            {
                if (w.Database != dbName || w.ConnectionStringName != connecitonString)
                {
                    continue;
                }
                watchers.Remove(watcher);
                return;
            }
        }