public void SendDataStream(byte[] data)
 {
     try
     {
         _dataChannel.Send(data, TimeSpan.FromSeconds(COMMANDTIMEOUT));
     }
     catch (SemaphoreFailedException exc)
     {
         // ignore if nothing to receive and wait for response again
         FI.Common.LogWriter.Instance.WriteEventLogEntry(_cmdChannelType.ToString() + ": SendDataStream SemaphoreFailedException");
         throw exc;;
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Ajout un frame à la queue
 /// </summary>
 public void WriteFrame(Frame frame)
 {
     _pictureTransfert.Send(frame);
 }