public static async Task Run(GeotabDataOnlyPlanAPI api) { ConsoleUtility.LogExampleStarted(typeof(GetFlashCodesAsyncExample).Name); try { IList <FlashCode> flashCodes = await api.GetFlashCodesAsync(); } catch (Exception ex) { ConsoleUtility.LogError(ex); } ConsoleUtility.LogExampleFinished(typeof(GetFlashCodesAsyncExample).Name); }