Created
November 7, 2018 14:38
-
-
Save KevinDJones/7f78d0c9900c317dedb8d07210fb21b5 to your computer and use it in GitHub Desktop.
This file contains 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
[FunctionName("ColdStarter")] | |
public static async Task Run( | |
[TimerTrigger("* */15 * * * *")]TimerInfo myTimer, | |
ILogger log) | |
{ | |
var client = new HttpClient(); | |
await client.GetAsync(Environment.GetEnvironmentVariable("FunctionUrl")); | |
log.LogInformation($"Pinged Function at: {DateTime.Now}"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment