コード例 #1
0
        public ProcessorService(IGeneratorManager generatorManager,
                                IMultiplierManager multiplierManager,
                                IBatchRepository batchRepository,
                                ILogger <ProcessorService> logger)
        {
            _generatorManager  = generatorManager;
            _multiplierManager = multiplierManager;
            _batchRepository   = batchRepository;
            _logger            = logger;

            _generatorManager.GeneratorEventHandler   += GeneratorCallback;
            _multiplierManager.MultiplierEventHandler += MultiplierCallback;
        }
コード例 #2
0
 public BatchNumbersMultiplyHandler(IMultiplierManager multiplierManager)
 {
     this.multiplierManager = multiplierManager;
 }