public void Subscribe(IntegrationEvent @event, IntegrationEventHandler handler) { _messageBusHelper.InitReceiveMessages(); _messageBusHelper.MessageReceivedHandler += handler.integrationEventHandler(); }
public async Task Publish(IntegrationEvent @event) { await _messageBusHelper.InitSendMessages(@event); }