public static async Task <IActionResult> ShowBusData([HttpTrigger("get", Route = "bus")] HttpRequest req, ILogger log) { var m = new BusDataManager(log); return(new OkObjectResult(await m.GetMonitoredBusData())); }
public async static Task GetBusData([TimerTrigger("*/15 * * * * *")] TimerInfo myTimer, ILogger log) { var m = new BusDataManager(log); await m.ProcessBusData(); }