Exemplo n.º 1
0
        /// <summary>
        /// Internal method that writes the host/entry registrations to the cluster member properties.
        /// </summary>
        private void Register()
        {
            TimedLock.AssertLocked(syncLock);

            if (!enabled || cluster == null)
            {
                return;
            }

            int index = 0;

            cluster.Clear();
            foreach (DynDnsHostEntry hostEntry in hosts.Values)
            {
                cluster.Set(string.Format("host[{0}:{1}]", hostEntry.Host, index++), hostEntry.ToString());
            }
        }