Advertisement
Guest User

Untitled

a guest
Mar 17th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.39 KB | None | 0 0
  1.         Task.Factory.StartNew(async () => {
  2.           System.Console.WriteLine("before: {0}", Thread.CurrentThread.ManagedThreadId);
  3.           var x = await System.Net.Dns.GetHostAddressesAsync("google.com");
  4.           // how to configure the managed thread id to be the same as the caller?
  5.           System.Console.WriteLine("after: {0}", Thread.CurrentThread.ManagedThreadId);
  6.         });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement