Skip to content

Instantly share code, notes, and snippets.

@yuka1984
Created February 2, 2018 00:51
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 yuka1984/ddcb97dee355ec8d3a0e00561c980c14 to your computer and use it in GitHub Desktop.
Save yuka1984/ddcb97dee355ec8d3a0e00561c980c14 to your computer and use it in GitHub Desktop.
[FunctionName(nameof(SaveRequestKeyActivity))]
public static async Task SaveRequestKeyActivity(
[ActivityTrigger] DurableActivityContext context,
[Table("KeySaveTable")] CloudTable table
)
{
var key = context.GetInput<string>();
var insertOperation = TableOperation.Insert(new TableEntity(key, context.InstanceId));
await table.ExecuteAsync(insertOperation);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment