uncomment trigger, add webperf url
This commit is contained in:
@@ -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}");
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user