Skip to content

Instantly share code, notes, and snippets.

@scott-kloud
Created May 22, 2017 01:57
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/dd30e487099321065ffd041c6c2996e8 to your computer and use it in GitHub Desktop.
Save scott-kloud/dd30e487099321065ffd041c6c2996e8 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}");
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