Add new samples.

This commit is contained in:
Christian
2022-06-18 11:38:36 +02:00
parent a3c7f9a22c
commit 14eb202873
3 changed files with 128 additions and 27 deletions
+9 -3
View File
@@ -39,10 +39,16 @@ Console.WriteLine();
try
{
var task = selectedSampleMethod.Invoke(null, null) as Task;
task?.Wait();
if (selectedSampleMethod.Invoke(null, null) is Task task)
{
await task;
}
}
catch (Exception exception)
{
Console.WriteLine(exception.ToString());
}
}
Console.WriteLine();
Console.WriteLine("Press Enter to exit.");
Console.ReadLine();