Skip to content

Instantly share code, notes, and snippets.

@scott-kloud
Created May 22, 2017 02:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scott-kloud/d2f125d610b1775db6d8aca59a01ebe5 to your computer and use it in GitHub Desktop.
Save scott-kloud/d2f125d610b1775db6d8aca59a01ebe5 to your computer and use it in GitHub Desktop.
#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