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