Skip to content

Instantly share code, notes, and snippets.

View petmat's full-sized avatar

Matti Petrelius petmat

View GitHub Profile
[FunctionName("Counter")]
public static async Task Counter(
[EntityTrigger] IDurableEntityContext ctx)
{
int currentValue = ctx.GetState<int>();
int operand = ctx.GetInput<int>();
switch (ctx.OperationName)
{
case "add":