private static async void GetAllMatch(MatchProvider matchController) { var matches = await matchController.GetAllMatches(); lock (lockWrite) { Console.WriteLine("### All available matches ###"); Console.WriteLine(JsonConvert.SerializeObject(matches)); Console.WriteLine(); } }