Esempio n. 1
0
 private static async void RunSender(EventSender eventSender, ConcurrentQueue <StoreEvent> sendQueue)
 {
     while (sendQueue.TryDequeue(out var message))
     {
         await eventSender.SendMessage(message);
     }
 }
Esempio n. 2
0
 public static void SendMessage(Enum eventType)
 {
     senders.SendMessage(eventType, null);
 }