Пример #1
0
 public AnnouncementLog Announce(AnnouncementTemplate template)
 {
     AnnounceTopic?.Invoke(template.Topic);
     return(new AnnouncementLog($"{template.Greeting}! I hearby announce that {template.Topic}"));
 }
Пример #2
0
 public string Announce2(string topic)
 {
     AnnounceTopic?.Invoke(topic);
     return($"Hear ye! Hear ye! On this datetime {DateTime.Now} I hearby announce that {topic}");
 }