Esempio n. 1
0
        protected override void HandleCore(NoOperation message)
        {
            logger.Info("CS sent us NoOperation message.");

            // TODO what happens when Address is not an IP address? Should we ignore the exception or handle it
            // gracefully?
            var servers = message.BackupServers ?? new BackupServer[0];

            backupManager.UpdateServers(
                servers.Select(s => new BackupServerInfo(s.Id, IPAddress.Parse(s.Address), s.Port))
                );
        }