{
[AttributeUsage(AttributeTargets.Class)]
[Serializable]
+ [System.Runtime.InteropServices.ComVisible (true)]
public class SynchronizationAttribute: ContextAttribute, IContributeClientContextSink, IContributeServerContextSink
{
public const int NOT_SUPPORTED = 1;
[NonSerialized]
bool _locked;
[NonSerialized]
- int _lockCount = 0;
+ int _lockCount;
[NonSerialized]
Mutex _mutex = new Mutex (false);
}
}
+ [System.Runtime.InteropServices.ComVisible (true)]
public override void GetPropertiesForNewContext (IConstructionCallMessage ctorMsg)
{
if (_flavor != NOT_SUPPORTED) {
return new SynchronizedServerContextSink (nextSink, this);
}
+ [System.Runtime.InteropServices.ComVisible (true)]
public override bool IsContextOK (Context ctx, IConstructionCallMessage msg)
{
SynchronizationAttribute prop = ctx.GetProperty ("Synchronization") as SynchronizationAttribute;