What would be (the closest) .NET Core 1.0 equivalent for
System.Threading.Thread.CurrentThread.ManagedThreadId
?
update
As @svick clarified System.Threading.Thread.CurrentThread.ManagedThreadId is at its usual location. Please see the screenshot below. The question is closed. (Still unclear how and when CurrentThread property's System.Threading.Thread instance is initialized to a non-null value (default(System.Threading.Thread) is always == null?) but this is not the subject of this topic.)
update 2
Actually System.Threading.Thread.CurrentThread.ManagedThreadId is available in .NET Core 1.0 application project, which has defined in its project.json:
"frameworks": {
"netcoreapp1.0": {
"imports": "dnxcore50"
}
and is missing in .NET Core 1.0 class library project, which has defined in its project.json:
"frameworks": {
"netstandard1.6": {
"imports": "dnxcore50"
}
How to make System.Threading.Thread.CurrentThread.ManagedThreadId available in .NET Core 1.0 class library project?
ref
directory and not insrc
). The actual implementation is in CoreCLR. – Spannew