Beispiel #1
0
 private async Task SendCovidNotificion(IPatient patient)
 {
     if (!string.IsNullOrWhiteSpace(patient?.EmailAddress) && patient.TestCovid.HasValue)
     {
         await _busSender.SendMessage(MessagePayloadFactory.Create(MessageType.CovidNotification, patient.EmailAddress));
     }
 }
Beispiel #2
0
 public ActionResult MakeWidget()
 {
     busSender.SendMessage(new WidgetAdded("YO"));
     return(View("Index"));
 }