public ActionResult <IEnumerable <string> > Get() { var @event = new TestValueEvent(); _logger.LogInformation($"----- Publishing integration event with id : {@event.Id}"); _eventBus.Publish(@event); return(new string[] { "value1", "value2" }); }
public void HandleEventException(Exception ex, long sequence, ref TestValueEvent evt) { _exceptionHandled.Write(ex); }
public void OnEvent(ref TestValueEvent data, long sequence, bool endOfBatch) { Thread.Sleep(1000); }
public void OnEvent(ref TestValueEvent data, long sequence, bool endOfBatch) { }
public void OnEvent(ref TestValueEvent data, long sequence, bool endOfBatch) { WaitForAndSetFlag(0); }
public void OnEvent(ref TestValueEvent data, long sequence, bool endOfBatch) { throw _applicationException; }