Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Task.Factory.StartNew(async () => {
- System.Console.WriteLine("before: {0}", Thread.CurrentThread.ManagedThreadId);
- var x = await System.Net.Dns.GetHostAddressesAsync("google.com");
- // how to configure the managed thread id to be the same as the caller?
- System.Console.WriteLine("after: {0}", Thread.CurrentThread.ManagedThreadId);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement