Dispose() public method

public Dispose ( ) : void
return void
        public void Dispose(bool disposing)
        {
            if (disposed)
            {
                return;
            }

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

            if ((--actCtxRefCount) == 0 && activationContext != null)
            {
                activationContext.Dispose();
            }

            disposed = true;
        }