Table of Contents

Class ThreadUtility

Namespace
NUnit.Framework.Internal
Assembly
nunit.framework.dll

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

IPrincipal

SetCurrentThreadPrincipal(IPrincipal?)

Sets CurrentPrincipal if current platform supports it.

public static void SetCurrentThreadPrincipal(IPrincipal? principal)

Parameters

principal IPrincipal

Value to set. If the current platform does not support CurrentPrincipal then the only allowed value is null.