Exemplo n.º 1
0
        public void Announce(Announcement announcement)
        {
            if (!IsRecentAnnouncement(announcement))
            {
                if (IsConnected)
                {
                    Logger.LogInfo("Listener", "Announcing message " + announcement.Message +
                                   " to " + announcement.FolderIdentifier + " on " + Server);

                    AnnounceInternal(announcement);
                    AddRecentAnnouncement(announcement);
                }
                else
                {
                    Logger.LogInfo("Listener", "Can't send message to " + Server + ". Queuing message");
                    this.queue_up [announcement.FolderIdentifier] = announcement;
                }
            }
            else
            {
                Logger.LogInfo("Listener", "Already processed message " + announcement.Message +
                               " to " + announcement.FolderIdentifier + " from " + Server);
            }
        }
Exemplo n.º 2
0
 protected abstract void AnnounceInternal(Announcement announcent);