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" });
        }
Example #2
0
 public void HandleEventException(Exception ex, long sequence, ref TestValueEvent evt)
 {
     _exceptionHandled.Write(ex);
 }
Example #3
0
 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);
 }
Example #6
0
 public void OnEvent(ref TestValueEvent data, long sequence, bool endOfBatch)
 {
     throw _applicationException;
 }