Пример #1
0
 public BaseSampleDeviceDriverStreamSession(ISettingsManager settingsManager, SampleDeviceDriverConnectionManager connectionManager, Guid sessionId, string deviceId, Guid streamId)
 {
     Id = sessionId;
     _settingsManager   = settingsManager;
     _connectionManager = connectionManager;
     _deviceId          = deviceId;
     _streamId          = streamId;
     try
     {
         // TODO: Make request for starting live stream
     }
     catch (Exception ex)
     {
         throw new ConnectionLostException(ex.Message + ex.StackTrace);
     }
 }
 public SampleDeviceDriverVideoStreamSession(ISettingsManager settingsManager, SampleDeviceDriverConnectionManager connectionManager, Guid sessionId, string deviceId, Guid streamId) :
     base(settingsManager, connectionManager, sessionId, deviceId, streamId)
 {
     // TODO: Set Channel to correct channel number
     Channel = 1;
 }
Пример #3
0
 public InputPoller(IEventManager eventManager, SampleDeviceDriverConnectionManager connectionManager)
 {
     _connectionManager = connectionManager;
     _eventManager      = eventManager;
     InitEventHandlers();
 }