Azure/azure-functions-rabbitmq-extension

Bringing converters to TriggerBindingRule

Opened this issue · 0 comments

  • RabbitMQExtensionBindingConfigProvider binds using pattern triggerRule.BindToTrigger instead of triggerRule.BindToTrigger<BasicDeliverEventArgs> .

  • The former does not fire up converters, so worked around that by using a ValueProvider that takes in a destinationType and does conversions accordingly.

  • The latter pattern works fine for dotnet scenarios but for out-of-proc, it messes up the _defaultType and fires the BasicDeliverEventArgsToPocoConverter , even if a simple string is expected. This is due to TriggerAdapterBindingProvider overriding the defaultType based on priority regardless of what the requestedType is.