Class ThreadUtility
ThreadUtility provides a set of static methods convenient for working with threads.
public static class ThreadUtility
- Inheritance
-
ThreadUtility
- Inherited Members
Methods
GetCurrentThreadPrincipal()
Gets CurrentPrincipal or null if the current platform does not support it.
public static IPrincipal? GetCurrentThreadPrincipal()
Returns
SetCurrentThreadPrincipal(IPrincipal?)
Sets CurrentPrincipal if current platform supports it.
public static void SetCurrentThreadPrincipal(IPrincipal? principal)
Parameters
principal
IPrincipalValue to set. If the current platform does not support CurrentPrincipal then the only allowed value is null.