Skip to content

Instantly share code, notes, and snippets.

@alexjamesbrown
Last active February 23, 2019 22:26
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 alexjamesbrown/272e9b0aabafba5d02e9e1c0774e8ce8 to your computer and use it in GitHub Desktop.
Save alexjamesbrown/272e9b0aabafba5d02e9e1c0774e8ce8 to your computer and use it in GitHub Desktop.
Simple ServiceBusTrigger Function
[FunctionName("TopicProcessor")]
public static async Task Run(
[ServiceBusTrigger("%topic-name%", "%subscription-name%", AccessRights.Manage, Connection = "connection")] BrokeredMessage msg,
ILogger log)
{
var thing = msg.GetBody<Thing>();
var apiClient = new ApiClient();
await apiClient.PostAsync(thing);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment