// Main method for running the flight price changes check private static Task ProcessTimer() { return(Task.Run(async() => { return await Task.Run(async() => { bool changed = false; // The bot checks in Azure Table storage... using (TableStorage ts = new TableStorage()) { // ...If a stored flight request has had any price changes // and if so, send the user this information... changed = await ts.CheckForPriceUpdates(Data.fd.Airports, Data.fd.FlightDetails, Data.initialActivity, Data.initialConnector, Data.currentText); timerBusy = false; } return changed; }); })); }