pguzewicz
pguzewicz

Reputation: 304

Multithreading inside NServiceBus handler

Is there a scenario in which running async operations inside a handler is justified? For example:

public class H1 : IMessageHandler<MyMessage>
{
    public async void Handle(MyMessage message)
    {
        await SendTxt(message);
        await SendEmail(message);
    }
}

Upvotes: 2

Views: 450

Answers (1)

Sean Farmar
Sean Farmar

Reputation: 2283

NServiceBus does not support async handlers.

What are you trying to do?

Upvotes: 2

Related Questions