示例#1
0
 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;
 }
示例#2
0
 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;
 }
示例#3
0
        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!");
        }