uncomment trigger, add webperf url

This commit is contained in:
tparnell
2019-11-11 18:47:25 -05:00
parent bd9b88c8cf
commit 75f5fc17c0
2 changed files with 28 additions and 27 deletions

View File

@@ -1,28 +1,28 @@
// using System; using System;
// using System.Net.Http; using System.Net.Http;
// using System.Threading.Tasks; using System.Threading.Tasks;
// using Microsoft.Azure.WebJobs; using Microsoft.Azure.WebJobs;
// using Microsoft.Azure.WebJobs.Host; using Microsoft.Azure.WebJobs.Host;
// using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging;
// namespace aka.terribledev.io namespace aka.terribledev.io
// { {
// public static class WakeyWakey public static class WakeyWakey
// { {
// static HttpClient client = new HttpClient(); static HttpClient client = new HttpClient();
// [FunctionName("WakeyWakey")] [FunctionName("WakeyWakey")]
// public async static Task Run([TimerTrigger("0 */5 * * * *")]TimerInfo myTimer, ILogger log) public async static Task Run([TimerTrigger("0 */5 * * * *")]TimerInfo myTimer, ILogger log)
// { {
// log.LogInformation($"C# Timer trigger function executed at: {DateTime.Now}"); log.LogInformation($"C# Timer trigger function executed at: {DateTime.Now}");
// using (var result = await client.GetAsync("https://aka.terribledev.io", HttpCompletionOption.ResponseContentRead)) using (var result = await client.GetAsync("https://aka.terribledev.io", HttpCompletionOption.ResponseContentRead))
// { {
// if (!result.IsSuccessStatusCode) if (!result.IsSuccessStatusCode)
// { {
// log.LogCritical("Error waking up redirect", result); log.LogCritical("Error waking up redirect", result);
// } }
// var content = await result.Content.ReadAsStringAsync(); var content = await result.Content.ReadAsStringAsync();
// log.LogInformation($"Recieved status code ${result.StatusCode} with body ${content}"); log.LogInformation($"Recieved status code ${result.StatusCode} with body ${content}");
// } }
// } }
// } }
// } }

View File

@@ -32,6 +32,7 @@ namespace TerribleDev
["things-to-know"] = "https://github.com/TerribleDev/Things-to-know", ["things-to-know"] = "https://github.com/TerribleDev/Things-to-know",
["code101"] = "https://github.com/NashuaCodes/Decks", ["code101"] = "https://github.com/NashuaCodes/Decks",
["webpack/timereport"] = "https://gist.github.com/TerribleDev/8677821c3e174659250df1f6bba9d7c3" ["webpack/timereport"] = "https://gist.github.com/TerribleDev/8677821c3e174659250df1f6bba9d7c3"
["webperf"] = "https://github.com/TerribleDev/WebPerformanceChecklist"
}; };
public static class redirectFunctionTrig public static class redirectFunctionTrig