Azure / azure-functions-servicebus-extension

Service Bus extension for Azure Functions
MIT License
65 stars 36 forks source link

Set sessionId with `$return` output binding #136

Closed pawepaw closed 2 years ago

pawepaw commented 3 years ago

Hi,

I'm currently developing azure function with service bus binding. We want to enable session support on service bus and i'm wondering if it's possible to set SessionId somehow when using $return binding from function.

I've Tried to set "isSessionsEnabled": true in function.json binding and explicitly set SessionId property in return value but it isn't working. I'm getting exception that SessionId is not set.


The SessionId was not set on a message, and it cannot be sent to the entity. Entities that have session support enabled can only receive messages that have the SessionId set to a valid value.```
alrod commented 2 years ago

@pawepaw, what language do you use?

pawepaw commented 2 years ago

@alrod C#

shreyabatra4 commented 2 years ago

This will be tracked here: https://github.com/Azure/azure-sdk-for-net/issues/21884