Exemplo n.º 1
0
 private IEnumerable<IModuleProcessor> GetProcessors(IServiceFactory factory)
 {
     var processors = new IModuleProcessor[]
     {
         factory.GetInstance<CommandAttributeScanner>(),
         factory.GetInstance<DelegateCommandClassInjectionProcessor>(),
         factory.GetInstance<ModuleTypesProcessor>(),
         factory.GetInstance<AttributeCleanerProcessor>(),
         factory.GetInstance<ReferenceCleanerProcessor>()
     };
     return processors;
 }
Exemplo n.º 2
0
        private IEnumerable <IModuleProcessor> GetProcessors(IServiceFactory factory)
        {
            var processors = new IModuleProcessor[]
            {
                factory.GetInstance <CommandAttributeScanner>(),
                factory.GetInstance <DelegateCommandClassInjectionProcessor>(),
                factory.GetInstance <ModuleTypesProcessor>(),
                factory.GetInstance <AttributeCleanerProcessor>(),
                factory.GetInstance <ReferenceCleanerProcessor>()
            };

            return(processors);
        }
Exemplo n.º 3
0
        public PositionImProcessor(
            BPFinanceContext context,
            IBPFinanceRepository repository,
            IOrderImProcessor orderImProcessor,
            IStringProcessor stringProcessor,
            IModuleProcessor moduleProcessor,
            IModuleMaketProcessor moduleMaketProcessor)
        {
            _context    = context;
            _repository = repository;

            _orderImProcessor = orderImProcessor;
            _stringProcessor  = stringProcessor;

            _moduleProcessor      = moduleProcessor;
            _moduleMaketProcessor = moduleMaketProcessor;

            _positionImFactory = new PositionImFactory();
        }
Exemplo n.º 4
0
 public ModuleController(IModuleProcessor processor, IValidator <ModuleRequestDto> moduleRequestValidator, IValidator <ModuleUpdateRequestDto> moduleUpdateRequestValidator)
 {
     _moduleProcessor              = processor;
     _moduleRequestValidator       = moduleRequestValidator;
     _moduleUpdateRequestValidator = moduleUpdateRequestValidator;
 }