Last active
December 7, 2017 19:01
-
-
Save jeffhollan/083d81bbaee449e128a7cd918564c9ee to your computer and use it in GitHub Desktop.
Processing multiple poison queus with functions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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