Open ramonsmits opened 1 year ago
That'd be nice.
Regarding sending messages to the error queue, could be possible with middleware.
In the following PR we are detecting when someone uses APIs to configure the transport in ways that do not function correctly in a serverless context:
The documentation for DoNotSendMessagesToErrorQueue
states
Disables moving messages to the error queue even if an error queue name is configured.
That seems to imply that you are supposed to be allowed to configure both by design.
@ramonsmits given the above comment, is this issue still valid or can it be closed?
No, from my pov the Roslyn analyzer is a workaround for a badly designed API. APIs that don't make sense in the context should not even be available.
Either a different endpointconfiguration should be used or the endpoint configuration should not provide these and expose such APIs differently
Some users try do to things like:
The transport and concurrency limit settings are ignored but users are unaware of this. Same with
DoNotSendMessagesToErrorQueue
which overridesSendFailedMessagesTo
. These conflicting settings should result in an endpoint not being able to start or even better. Such APIs should not even be available when using Azure Functions.