Dispose() public method

public Dispose ( ) : void
return void
Exemplo n.º 1
0
        public void Dispose(bool disposing)
        {
            if (disposed)
            {
                return;
            }

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

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

            disposed = true;
        }