Created
December 7, 2019 11:29
-
-
Save mu88/e22b330eececf3b42c781c37e263c7b4 to your computer and use it in GitHub Desktop.
Docker and dotTrace - Program.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Threading.Tasks; | |
| namespace TestWithDocker | |
| { | |
| internal class Program | |
| { | |
| private static async Task Main() | |
| { | |
| while (true) | |
| { | |
| await Task.Delay(1000); | |
| DoSomeWork(); | |
| } | |
| } | |
| private static void DoSomeWork() | |
| { | |
| for (var i = 0; i < 100; i++) | |
| { | |
| Console.WriteLine(new Random().Next()); | |
| } | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment