public UserReportGenerator(IProducerFactory <User> producerFactory) { _producerFactory = producerFactory; }
public JT808DeviceMonitoringDispatcherImpl(IProducerFactory producerFactory) { _producerFactory = producerFactory; }
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; }