Skip to content

Instantly share code, notes, and snippets.

@KevinDJones
Created November 7, 2018 14:38
Show Gist options
  • Save KevinDJones/7f78d0c9900c317dedb8d07210fb21b5 to your computer and use it in GitHub Desktop.
Save KevinDJones/7f78d0c9900c317dedb8d07210fb21b5 to your computer and use it in GitHub Desktop.
[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