Created
May 22, 2017 02:33
-
-
Save scott-kloud/d2f125d610b1775db6d8aca59a01ebe5 to your computer and use it in GitHub Desktop.
This file contains hidden or 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} Retry attempt: {mySbMsg.DeliveryCount}"); | |
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