예제 #1
0
        /// <summary>
        /// Add reference for provided assembly. Referenced assembly is load if needed.
        /// </summary>
        /// <param name="reference">Reference representation used for assembly loading.</param>
        internal void AddReference(object reference)
        {
            References.Add(reference);

            //report reference add to manager - it will load coresponding assembly if possible
            //if loading fails reference will be added on registered change from outside
            //will cause reloading components
            _manager.ReportReferenceAdded(_owner, reference);
        }