public VideoController(IVideoCloudRepository videoRepository, ILogger <VideoController> logger, IMapper mapper, BusinessProducer producer, IOptions <EventBusConstants> options) { _videoRepository = videoRepository; _logger = logger; _mapper = mapper; _producer = producer; _constants = options.Value; }
public AudioController(IAudioCloudRepository audioRepository, ILogger <AudioController> logger, IMapper mapper, BusinessProducer producer, IOptions <EventBusConstants> options) { _audioRepository = audioRepository; _logger = logger; _mapper = mapper; _producer = producer; _constants = options.Value; }
public string UpdateDoctors() { var producter = new BusinessProducer(config); Random rnd = new Random(99999); var doctor = new DoctorInfoMQ { DoctorId = rnd.Next(), DoctorName = "Doc-100", HeadImgUrl = "", Introduce = "test:100", Level = "", PhoneNumber = "15900507061", ServiceDeptName = "NIO", Speciality = "" }; producter.Publish("DOCTORINFO_QUEUE", doctor); return("Success!"); }