예제 #1
0
        public static IEnumerable <Assembly> GetModuleAssembliess()
        {
            // var asm = AssemblyScanning.GetAssemblies<IModule>(MODULE_NAMESPACE);
            var asm2 = AssemblyScanning.GetAssemblies(new Type[] { typeof(IModule), typeof(IModuleShared), typeof(IModuleBusinessService), typeof(IModuleLogic) });

            //asm.AddRange(asm2);
            return(asm2);
        }
        public Type GetBusinessServiceTypes <T>() where T : IBusinessServiceInfo
        {
            var businessServices = AssemblyScanning.GetTypes <IBusinessService <T> >();

            return(businessServices.FirstOrDefault());
        }
        private static IEnumerable <Type> GetBusinessServiceInfoTypes()
        {
            var businessServices = AssemblyScanning.GetTypes <IBusinessServiceInfo>();

            return(businessServices);
        }
예제 #4
0
 public static IEnumerable <IModule> GetModules()
 {
     return(AssemblyScanning.GetInstances <IModule>());
 }