Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
[FunctionName(nameof(Function1.LongRunningOperation))]
public Task LongRunningOperation([ActivityTrigger]int secondsToWait, ILogger log)
{
log.LogInformation($"Doing something really interesting for {secondsToWait} seconds");
return Task.Delay(TimeSpan.FromSeconds(secondsToWait));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment