예제 #1
0
        public List <IDataDictionarySeeder> CreateDataDictionarySeederDataBuilder()
        {
            var assemblyTypes = _reflectionHelper.GetTypesFromAssembly(_assemblyName);
            var seeders       = _reflectionHelper.GetTypesWithImplementingInterface <IDataDictionarySeeder>(assemblyTypes);

            return(seeders.Select(CreateIntanceOfDataDictionarySeeder).ToList());
        }
예제 #2
0
        public List <IHistoryInserter> CreateHistoryInserter(IContext context)
        {
            var assemblyTypes   = _reflectionHelper.GetTypesFromAssembly(_assemblyName);
            var historyInserter = _reflectionHelper.GetTypesWithImplementingInterface <IHistoryInserter>(assemblyTypes);

            return(historyInserter.Select(o => CreateIntanceOfHistoryInserter(o, context)).ToList());
        }
예제 #3
0
        public List <IBuildGridSchema> CreateGridDataBuilder()
        {
            var assemblyTypes    = _reflectionHelper.GetTypesFromAssembly(_assemblyName);
            var gridDataBuilders = _reflectionHelper.GetTypesWithImplementingInterface <IBuildGridSchema>(assemblyTypes);

            return(gridDataBuilders.Select(CreateIntanceOfRuleType).ToList());
        }
예제 #4
0
        public ILookupFunction Create <TType>(string entityLookup)
        {
            var assemblyTypes = _helper.GetTypesFromAssembly(_assemblyName);
            var types         = _helper.GetTypesWithImplementingInterface <TType>(assemblyTypes);
            var typeToCreate  = _GetTypeToInstantiate(entityLookup, types);
            var lookUp        = _CreateInstanceOfLookUp(typeToCreate);

            return(lookUp);
        }
        private void CreateErrorHandlers(IWebUtilityWrapper webUtilityWrapper)
        {
            var types = _reflection.GetTypesFromAssembly("Wizardsgroup.Core.Web");
            var globalExceptionHandlers = _reflection.GetTypesWithImplementingInterface <IGlobalExceptionHandler>(types);

            _handlers = new List <IGlobalExceptionHandler>();
            foreach (var handler in globalExceptionHandlers)
            {
                _handlers.Add(_reflection.CreateInstanceOfType <IGlobalExceptionHandler>(handler, webUtilityWrapper));
            }
        }