Synchronous Message Handling?

Greetings,

I have a use case where I want to publish events where some of the event handlers need to be synchronous (potentially running on the same box as the publisher). Is this possible with using NServiceBus?

Many thx.

Hi @geekox86,

Can you explain a bit more about what you’re asking for? It’s not entirely clear what your scenario is.

If you are concerned about the fact that handlers return Task but you don’t have anything that needs an await keyword, you can omit the async keyword on the method definition and return Task.CompletedTask.