Skip to content

Instantly share code, notes, and snippets.

@marcduiker
Created November 5, 2017 22:03
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 marcduiker/e127deda371260f71ca93b1182e35a85 to your computer and use it in GitHub Desktop.
Save marcduiker/e127deda371260f71ca93b1182e35a85 to your computer and use it in GitHub Desktop.
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