Skip to content

Instantly share code, notes, and snippets.

@jeffhollan
Last active December 7, 2017 19:01
Show Gist options
  • Save jeffhollan/083d81bbaee449e128a7cd918564c9ee to your computer and use it in GitHub Desktop.
Save jeffhollan/083d81bbaee449e128a7cd918564c9ee to your computer and use it in GitHub Desktop.
Processing multiple poison queus with functions
using System;
using Microsoft.Azure.WebJobs;
using Microsoft.Azure.WebJobs.Host;
namespace FunctionApp5
{
public static class Function1
{
[FunctionName("Function1")]
public static void Run1([QueueTrigger("queue1-poison")]dynamic message, TraceWriter log)
{
PoisonHandler.Process(message);
}
[FunctionName("Function2")]
public static void Run2([QueueTrigger("queue2-poison")]dynamic message, TraceWriter log)
{
PoisonHandler.Process(message);
}
[FunctionName("Function3")]
public static void Run3([QueueTrigger("queue3-poison")]dynamic message, TraceWriter log)
{
PoisonHandler.Process(message);
}
}
public static class PoisonHandler
{
public static void Process(dynamic message)
{
// Do my work here
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment