Created
November 5, 2017 22:03
-
-
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).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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