-
Notifications
You must be signed in to change notification settings - Fork 3
NServiceBus.Extensions.DependencyInjection can't be used #265
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@DavidBoike shouldn't this issue be focused on support for send-only configurations rather than on using |
Perhaps. I wrote the issue at the time based on the problem the customer was having. |
FYI #220 also describes a workaround that should allow using "SendOnly" mode (using no trigger or message pump) |
Using the worker mode, I think someting like the following approach should work as a workaround (also enabling usage of different transports to send messages) but I'd rather have a better integration with the known
note that this doesn't properly configure logging in NServiceBus, so this isn't production ready code. |
If you want to create a send-only endpoint, a ServiceBusTriggeredEndpointConfiguration doesn't make any sense, as there won't be a queue.
But setting up a send-only NServiceBus endpoint using NServiceBus.Extensions.DependencyInjection won't work either, because the
.UseNServiceBus(…)
extension method doesn't supportIFunctionsHostBuilder
.I think this also affects the InProcess hosting model as IFunctionsHostBuilder is located in
Microsoft.Azure.Functions.Extensions.DependencyInjection
.The text was updated successfully, but these errors were encountered: