Skip to content

Handler Synchronization

Daniel Little edited this page Mar 7, 2016 · 2 revisions

If an event in MicroBus triggers multiple handlers the handlers can be invoked in either a asynchronous or synchronous manner. Using the BusSettings class you can set the HandlerConcurrency to either option.

var settings = new BusSettings() {
    HandlerConcurrency = Synchronization.Syncronous
}

Then to apply the settings, pass them along with Registering MicroBus.

containerBuilder.RegisterMicroBus(builderBuilder, settings);
Clone this wiki locally