Created
May 22, 2017 01:57
-
-
Save scott-kloud/dd30e487099321065ffd041c6c2996e8 to your computer and use it in GitHub Desktop.
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
#r "Microsoft.ServiceBus" | |
using Microsoft.ServiceBus.Messaging; | |
using System; | |
using System.Threading.Tasks; | |
public static void Run(BrokeredMessage mySbMsg, TraceWriter log) | |
{ | |
log.Info($"C# ServiceBus topic trigger function received message id: {mySbMsg.MessageId}"); | |
throw new ApplicationException("Something went pear shaped!"); | |
log.Info($"C# ServiceBus topic trigger function processed message id: {mySbMsg.MessageId}"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment