What Azure assembly has reference to ServiceBusTriggerAttribute?


The "How to use Azure Service Bus with the WebJobs SDK" Azure Documentation article shows the usage of [ServiceBusTrigger] attribute for integrating a WebJob and Azure Service Bus Topic messages. However, using the default Azure WebJobs project template in Visual Studio 2015, the reference to ServiceBusTrigger causes the following compile time exception:

The type or namespace name 'ServiceBusTriggger' could not be found (are you missing a using directive or an assembly reference?)

The problem at hand is the Microsoft.Azure.WebJobs package from Nuget doesn't contain the ServiceBusTriggerAttribute class.

Is there a Nuget package that can be added that will include this much needed class?

I have tried including the WindowsAzure.ServiceBus package from Nuget, but that doesn't contain it either.

Without the ServiceBusTriggerAttribute I am unable to get this WebJob connected to consume messages from an Azure Service Bus Topic. Any help would be greatly appreciated! Thanks!


The Microsoft.Azure.WebJobs.ServiceBus package from Nuget contains the ServiceBusTriggerAttribute class.

This video can help you solving your question :)
By: admin