Exemplo n.º 1
0
        private static Assembly getImpleAssembly(ServicePackageInfo info)
        {
            string[] strs  = info.ImpleAssemblyName.Split('\\');
            string   names = (strs[strs.Length - 1]);

            string[] arrname = (names.Split('.'));
            int      i       = 1;
            string   name    = arrname[0];

            while (i < arrname.Length - 1)
            {
                name += "." + arrname[i];
                i++;
            }

            Assembly impleAssembly;

            try
            {
                impleAssembly = AppDomain.CurrentDomain.Load(name);
            }
            catch
            {
                impleAssembly = CheckConfig.GetAssembly(ConfigUtil.GetBizPluginFullPath(info.ImpleAssemblyName));
            }

            return(impleAssembly);
        }