NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ThreadAffinity Reference

public class ThreadAffinity 
{
  public const int NOT_SUPPORTED     = 0x00000001;
  public const int SUPPORTED         = 0x00000002;
  public const int REQUIRED       = 0x00000004;
  public const int REQUIRES_NEW    = 0x00000008;
  
  public ThreadAffinity();
  public ThreadAffinity(bool bReEntrant);
  public ThreadAffinity(int flag);
  public ThreadAffinity(int flag, bool bReEntrant);
}

ThreadAffinity Flags

NOT_SUPPORTED. The class should not be instantiated in a context that has ThreadAffinity.

SUPPORTED. The class does not care if the context has ThreadAffinity or not.

REQUIRED. The class should be instantiated in a context that has ThreadAffinity.

REQUIRES_NEW. The class should be instantiated in a context with a new instance of ThreadAffinity property each time

ThreadAffinity

ThreadAffinity(). Default constructor. flag=REQUIRED and reEntrant=false.

ThreadAffinity (boolean reEntrant). If reEntrant is true, other calls are allowed to come in if the currently running call leaves the domain for a call-out. Flag=REQUIRED.

ThreadAffinity(int flag). flag=one of the Synchronization flags. reEntrant = false

ThreadAffinity (int flag, boolean reentrant). Flag=one the of Synchronization flags and reentrant=true otherwise false.Synchronization

For reference details see: ThreadAffinity