Azure / azure-functions-java-library

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

Update documentation or provide samples on how to use Message Metadata for Service Bus queue / topic triggered azure functions #126

Open ashwinp88 opened 4 years ago

ashwinp88 commented 4 years ago

In the official Microsoft documentation here there is a list of message metadata that can be used (or injected) into the azure function. However, there are no samples or documentation on how to do that. For example, doing the following results in an exception at runtime @FunctionName("Process") public void run(@ServiceBusTopicTrigger( name = "req", topicName = TemplatedConstants.topicName, subscriptionName = TemplatedConstants.subscriptionName, connection = "ServiceBusConnectionString") String message, final ExecutionContext context, Integer deliveryCount) {

because of the extra deliveryCount parameter