コード例 #1
0
 public UserReportGenerator(IProducerFactory <User> producerFactory)
 {
     _producerFactory = producerFactory;
 }
コード例 #2
0
 public JT808DeviceMonitoringDispatcherImpl(IProducerFactory producerFactory)
 {
     _producerFactory = producerFactory;
 }
コード例 #3
0
        public ProducerService(IRepository <Producer> producerRepository, IUnitOfWork unitOfWork, IProducerFactory producerFactory)
        {
            if (producerRepository == null)
            {
                throw new ArgumentNullException("Producer repository cannot be null!");
            }

            if (producerFactory == null)
            {
                throw new ArgumentNullException("Producer factory cannot be null!");
            }

            if (unitOfWork == null)
            {
                throw new ArgumentNullException("Unit of work cannot be null!");
            }

            this.producerRepository = producerRepository;
            this.unitOfWork         = unitOfWork;
            this.producerFactory    = producerFactory;
        }