Пример #1
0
        /// <summary>
        /// Remove reference from provided assembly. Referenced assembly may be unloaded.
        /// </summary>
        /// <param name="reference">Reference representation used for assembly unloading.</param>
        internal void RemoveReference(object reference)
        {
            //assembly corresponding to referece is cleaned up if needed lazily
            References.Remove(reference);

            //will cause reloading components
            _manager.ReportReferenceRemoved(_owner, reference);
        }