public void OnAnnouncementRequestEvent(IAnnouncementRequestEvent e)
 {
     if (e.Id == Id)
     {
         e.Response.UseCached = true;
     }
     else
     {
         e.Response.Announcement = new Announcement(Id, "Hello!");
     }
 }
Exemple #2
0
 public void OnAnnouncementRequestEvent(IAnnouncementRequestEvent e)
 {
     if (e.Id == Id)
     {
         // Client already has announcement cached, lets just use that
         e.Response.UseCached = true;
     }
     else
     {
         // Client is receiving this announcement for the first time, window will popup
         e.Response.Announcement = new Announcement(Id, "Hello!");
     }
 }