public void Dispose(bool disposing) { if (disposed) { return; } if (Interlocked.Decrement(ref actCtxRefCount) == 0 && activationContext != null) { activationContext.Dispose(); disposed = true; } }
public void Dispose(bool disposing) { if (disposed) { return; } if ((--actCtxRefCount) == 0 && activationContext != null) { activationContext.Dispose(); } disposed = true; }