예제 #1
0
 internal static void UnlockInstanceBeforeCallout(OperationContext operationContext)
 {
     if (operationContext != null && operationContext.IsServiceReentrant)
     {
         ConcurrencyBehavior.UnlockInstance(operationContext.InstanceContext);
     }
 }
예제 #2
0
 internal void UnlockInstance(ref MessageRpc rpc)
 {
     if (_concurrencyMode != ConcurrencyMode.Multiple)
     {
         ConcurrencyBehavior.UnlockInstance(rpc.InstanceContext);
     }
 }