static async Task DoIt() { var netCoreVer = System.Environment.Version; // 3.0.0 AceQLConsole.WriteLine(netCoreVer + ""); string connectionString = ConnectionStringCurrent.Build(); using (AceQLConnection connection = new AceQLConnection(connectionString)) { connection.RequestRetry = true; connection.AddRequestHeader("aceqlHeader1", "myAceQLHeader1"); connection.AddRequestHeader("aceqlHeader2", "myAceQLHeader2"); await connection.OpenAsync(); if (DO_LOOP) { while (true) { await ExecuteExample(connection).ConfigureAwait(false); Thread.Sleep(1000); } } else { await ExecuteExample(connection).ConfigureAwait(false); } await connection.CloseAsync(); } }