Instantly share code, notes, and snippets.

Embed
What would you like to do?
Durable Functions: Extremely basic implementation of an orchestration function (which actually doesn't do any orchestration).
using Microsoft.Azure.WebJobs;
using Microsoft.Azure.WebJobs.Host;
namespace DurableFunctionsDemo.Functions
{
public static class HelloWorld
{
[FunctionName("HelloWorld")]
public static string Run(
[OrchestrationTrigger]DurableOrchestrationContext context,
TraceWriter log)
{
string name = context.GetInput<string>();
log.Info($"HelloWorld function triggered with: {name}.");
return $"Hello {name}";
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment