public async Task <FehlerT[]> ExecuteAsync(LightingConsole console) { FehlerT[] fehler = new FehlerT[Steps.Count]; for (int i = 0; i < Steps.Count; i++) { fehler[i] = await Steps[i].ExecuteAsync(console); } return(fehler); }
/// <summary> /// Prints delay and response /// </summary> /// <param name="fehler">Request</param> /// <returns>void</returns> private static async Task Print(Task <FehlerT> fehler) { _stopwatch.Start(); FehlerT f = await fehler; _stopwatch.Stop(); Console.WriteLine($"Delay: {_stopwatch.Elapsed.TotalMilliseconds}ms\nResponse: {f.ToString()}"); _stopwatch.Reset(); }