Ejemplo n.º 1
0
        private void RevokeOwnership(OwnershipRemovalReason reason)
        {
            var cb = callback;

            if (cb != null)
            {
                cb(reason);
            }
            callback   = null;
            Controller = null;
        }
Ejemplo n.º 2
0
 public void RequestOwnership(IController controller, OwnershipRemovalCallback removalCallback)
 {
     RevokeOwnership(OwnershipRemovalReason.Override);
     Controller = controller;
     callback   = removalCallback;
 }