Warning 2 'System.AppDomain.GetCurrentThreadId()' is obsolete: 'AppDomain.GetCurrentThreadId has been deprecated because it does not provide a stable Id when managed threads are running on fibers (aka lightweight threads). To get a stable identifier for a managed thread, use the ManagedThreadId property on Thread. http://go.microsoft.com/fwlink/?linkid=14202'
i use this code from http://www.codeproject.com/Articles/22913/Auto-logout-Within-a-Windows-Application. And than appear above this warning. How to fix this warning.Please help me.
VulpesPosted Jul 3, 2014, 5:11 AM
However, I can tell you that System.AppDomain.GetCurrentThreadId() is just a wrapper for the API function GetCurrentThreadId and is not the same thing at all as the ManagedThreadId property you're supposed to use instead.