public static void Run( [TimerTrigger("40 */1 * * * *", RunOnStartup = true)] TimerInfo myTimer, [GooglePubSub("MyGooglePubSubConfig2")] ICollector <string> messages ) { PubSubCollector1.Run(myTimer, messages); }
public static void Run( [GooglePubSubTrigger("MyGooglePubSubConfig1")] IEnumerable <string> messages, [GooglePubSub("MyGooglePubSubConfig2")] ICollector <string> messagesCollector ) { //foreach (var message in messages) { // System.Console.WriteLine(message); //} PubSubCollector1.Run(null, messagesCollector); }
public static void Run( [GooglePubSubTrigger("MyGooglePubSubConfig2")] IEnumerable <string> messages, [GooglePubSub("MyGooglePubSubConfig2")] ICollector <string> messagesCollector, TraceWriter traceWriter ) { //var list = new List<Task>(); //foreach (var message in messages) { // traceWriter.Info(message); //} //await Task.WhenAll(list); PubSubCollector1.Run(null, messagesCollector); }