public LiveChannelController(ILiveChannelService liveChannelService,
                              IPullInfoService pullInfoService,
                              IPlayInfoService playInfoService)
 {
     _liveChannelService = liveChannelService;
     _pullInfoService    = pullInfoService;
     _playInfoService    = playInfoService;
 }
        public SendCommandManage(ILiveChannelService liveChannelService, IConfiguration configuration, IHubContext <SignalrHubs> hubContext)
        {
            _hubContext = hubContext;
            var publishAddress = configuration["AppSettings:PublishAddress"];
            var responesPort   = configuration["AppSettings:ResponsePort"];

            netMQService = new NetMQService($"tcp://{publishAddress}", $"tcp://{responesPort}");
            netMQService.OnResponseReceivePush += NetMQService_OnResponseReceivePush;
            ResponseSocket();
        }
Example #3
0
        //ILiveChannelManager _liveChannelManager;
        public LiveCommandController(ICommandService commandService, ILiveChannelService channelService, IPullInfoService pullInfoService
                                     //, ILiveChannelManager liveChannelManager
                                     )
        {
            _commandService  = commandService;
            _channelService  = channelService;
            _pullInfoService = pullInfoService;
            //_liveChannelManager = liveChannelManager;

            //_liveChannelManager.Data.AddRange(new List<string>() { "A", "B" });
        }
 public HomeController(ILiveChannelService liveChannelService, IVideoService videoService, IOptions <AppSettings> appSettings)
 {
     _liveChannelService = liveChannelService;
     _videoService       = videoService;
     _appSettings        = appSettings;
 }