Ejemplo n.º 1
0
 private async Task Beat()
 {
     var heartbeatEvent = CreateHeartbeatEvent();
     await _eventSender.Publish(heartbeatEvent);
 }
Ejemplo n.º 2
0
 public Task Publish <TBusEvent>(TBusEvent busEvent) where TBusEvent : IBusEvent
 {
     return(Task.Run(() => _eventSender.Publish(busEvent)).ConfigureAwaitFalse());
 }
Ejemplo n.º 3
0
 public Task Publish <TBusEvent>(TBusEvent busEvent) where TBusEvent : IBusEvent
 {
     return(_taskFactory.StartNew(() => _eventSender.Publish(busEvent), TaskContext.Send).Unwrap());
 }