public static async Task Run(GeotabDataOnlyPlanAPI api) { ConsoleUtility.LogExampleStarted(typeof(GetCountOfDeviceAsyncExample).Name); try { int deviceCount = await api.GetCountOfDeviceAsync(); } catch (Exception ex) { ConsoleUtility.LogError(ex); } ConsoleUtility.LogExampleFinished(typeof(GetCountOfDeviceAsyncExample).Name); }