コード例 #1
0
        /// <summary>
        /// Loads the assembly, finds all <see cref="SolidPlugIn"/> implementations and
        /// creates a list of <see cref="PlugInDetails"/> for them
        /// </summary>
        /// <param name="fullPath">The assembly full path to load</param>
        /// <returns></returns>
        public static List <PlugInDetails> GetPlugInDetails(string fullPath)
        {
            var list = new List <PlugInDetails>();

            PlugInIntegration.GetPlugIns(fullPath, (plugin) => list.Add(new PlugInDetails
            {
                AssemblyFullName = plugin.GetType().AssemblyBaseNormalized(),
                FullPath         = fullPath,
                TypeFullName     = plugin.GetType().FullName
            }));

            return(list);
        }