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!

Synchronization Reference

package System.Remoting;

public class Synchronization
    : ContextAttribute, IContributeServerContextSink, 
                IContributeClientContextSink
{
    . . .    
    public static final int NOT_SUPPORTED  = 0x00000001;
    public static final int SUPPORTED      = 0x00000002;
    public static final int REQUIRED       = 0x00000004;
    public static final int REQUIRES_NEW   = 0x00000008;

    public Synchronization();
    public Synchronization(boolean reEntrant);
    public Synchronization(int flag);
    public Synchronization(int flag, boolean reEntrant);
    . . .
}

Synchronization Flags

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

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

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

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

Synchronization

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

Synchronization(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.

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

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

For reference details see: Synchronization.