Skip to content

Instantly share code, notes, and snippets.

@vainolo
Last active Nov 18, 2018
Embed
What would you like to do?
Azure Functions – Part 6: HTTP and Timer Triggers - 3
// CRON formatted trigger every 5 seconds
[FunctionName("TimerTrigger1")]
public static void TimerTrigger1([TimerTrigger("*/5 * * * * *")]TimerInfo myTimer, ILogger log)
{
log.LogInformation($"CRON trigger executed at : {DateTime.Now}");
}
[FunctionName("TimerTrigger2")]
public static void TimerTrigger2([TimerTrigger("00:00:03")]TimerInfo myTimer, ILogger log)
{
log.LogInformation($"TimeSpan trigger executed at : {DateTime.Now}");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment