コード例 #1
0
ファイル: Program.cs プロジェクト: jansaris/SettopBox
 public Program(ILog logger, IThreadHelper threadHelper, Settings settings, Func <NewCamdApi> clientFactory, Keyblock keyblock, LinuxSignal signal, ModuleCommunication communication) : base(logger, signal, communication)
 {
     _threadHelper  = threadHelper;
     _settings      = settings;
     _clientFactory = clientFactory;
     _keyblock      = keyblock;
     _activeClients = new List <NewCamdApi>();
 }
コード例 #2
0
ファイル: NewCamdApi.cs プロジェクト: jansaris/SettopBox
 public NewCamdApi(ILog logger, IThreadHelper threadHelper, Settings settings, EncryptionHelpers crypto, NewCamdCommunication communication, Keyblock keyblock)
 {
     _logger        = logger;
     _threadHelper  = threadHelper;
     _settings      = settings;
     _crypto        = crypto;
     _communication = communication;
     _keyblock      = keyblock;
     _communication.MessageReceived += (sender, message) => ReceiveMessage(message);
     _communication.Closed          += (sender, message) => Closed?.Invoke(this, null);
 }