Quantcast
Channel: Service Bus forum
Viewing all articles
Browse latest Browse all 1916

WebJobs ServiceBusTrigger parameter function not found

$
0
0

Hello,

public class Program {    public static void Main()    {        var host = new JobHost();        host.RunAndBlock();    }    public static void ProcessMessage([ServiceBusTrigger("Topic""Subscription")] BrokeredMessage message)    {        //TO DO(message);    } }

I am running code Local m/c.       

In above code I am trying to trigger Topic's subscription on entry.

but when I run Code It gave me error "No Functions Found. Try making job classes and methods public".

I tried same method  in Function.cs file, but doesn't work.  

But when I changed ServiceBusTrigger to QueueTrigger It worked.

I have set below config properly.

<add name="AzureWebJobsDashboard" connectionString="{My Connection string}"/>

<add name="AzureWebJobsStorage" connectionString="{Connection_String}"/>    

<add name="AzureWebJobsServiceBus" connectionString="{Connection_String}"/> 

Where am I getting wrong?

Please help me..

Thanks


Viewing all articles
Browse latest Browse all 1916

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>