Esempio n. 1
0
        public static void Register(string name, string classname)
        {
            IProcessor inst = IocUtils.GetSingleObject <IProcessor>(classname);

            if (inst != null)
            {
                sImpls.AddOrUpdate(name.ToLower(), inst, (key, value) =>
                {
                    return(inst);
                });
                return;
            }
            throw new Exception(string.Concat("Processor实现未找到:", classname));
        }