Azure / azure-functions-java-library

Contains annotations for writing Azure Functions in Java
MIT License
43 stars 43 forks source link

Adding annotation to ServiceBusQueueTrigger and ServiceBusTopicTrigger #96

Closed amamounelsayed closed 4 years ago

amamounelsayed commented 4 years ago

ServiceBusQueueTrigger and ServiceBusTopicTrigger will have new annotation to support isSessionsEnabled.

The C# attributes is IsSessionsEnabled

pragnagopa commented 4 years ago

@amamounelsayed

cc @Flanker32 @jdneo

amamounelsayed commented 4 years ago

@pragnagopa When I tested on my machine, With the generated library jar I got. "bindings" : [ { "type" : "serviceBusTrigger", "direction" : "in", "name" : "message", "queueName" : "%SBQueueName%", "isSessionsEnabled" : true, "connection" : "AzureWebJobsServiceBus" } ]

If I did not specify the value there is no default value for isSessionsEnabled. "bindings" : [ { "type" : "serviceBusTrigger", "direction" : "in", "name" : "message", "queueName" : "%SBQueueName%", "connection" : "AzureWebJobsServiceBus" } ] Is this the reason we need to update the plugin?

pragnagopa commented 4 years ago

thanks for testing. No plugin updates needed!

amamounelsayed commented 4 years ago

Closed for pull request https://github.com/Azure/azure-functions-java-library/pull/99