I have the following code:
protected override async void OnStart() {
await Helper.PopulateMetrics();
await Helper.LogStart();
if (Settings.Rev == REV.No && (new[] { 15, 30, 50 }).Contains(Settings.Trk2))
I guess I am confused as when I set a breakpoint in await Helper.LogStart() I see that breakpoint his before the line starting with "if (Settings ... "
as there is an await should the code after those not be hit first?
Here's what the LogStart() method looks like:
public static async Task LogStart()
{
// code
await App.CDB.InsertLogItem(logStart);
}
Ideally I would like these two methods to just run in the background one after the other while the code immediately skips them.