Beispiel #1
0
        private static Dictionary <Type, IMemberAppService> getMemberAppServiceMap()
        {
            Dictionary <Type, IMemberAppService> map = new Dictionary <Type, IMemberAppService>();

            foreach (KeyValuePair <String, Type> kv in ObjectContext.Instance.TypeList)
            {
                if (kv.Value.IsAbstract)
                {
                    continue;
                }
                if (rft.IsInterface(kv.Value, typeof(IMemberAppService)) == false)
                {
                    continue;
                }

                IMemberAppService obj = ObjectContext.CreateObject(kv.Value) as IMemberAppService;

                map.Add(obj.GetMemberType(), obj);
            }

            return(map);
        }