Exemplo n.º 1
0
        public virtual void Deactivate(Transaction trans, IActivationDepth
                                       depth)
        {
            if (!depth.RequiresActivation())
            {
                return;
            }
            var obj = GetObject();

            if (obj == null)
            {
                return;
            }
            var container = trans.Container();

            LogActivation(container, "deactivate");
            SetStateDeactivated();
            _class.Deactivate(trans, this, depth);
        }