I’m currently working through endpoint hosting scenarios in Azure, and right now the biggest clunkiness is shimming in NServiceBus into an ASP.NET Core application.
Where is my
services.AddNServiceBus? It’s pretty straightforward with
IHostedService, but it’s a lot of boilerplate code for the community extension. I’d expect at the least something like:
services.AddNServiceBus(string endpointName, Action<EndpointConfiguration> config);
There’s some other problems too - I don’t have access to an outbox in web applications, so I have to make my own version of it, like domain events, then re-send those messages out later.