Last active
November 18, 2018 19:56
-
-
Save vainolo/210638468c18bf66beab6b003c616bc6 to your computer and use it in GitHub Desktop.
Azure Functions – Part 6: HTTP and Timer Triggers - 3
This file contains hidden or 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
// 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