Ejemplo n.º 1
0
 internal void Add(IReverserStream stream)
 {
     streams.Add(stream);
     lock (commandBuffer)
     {
         if (commandBuffer.Count > 0)
         {
             stream.Send(commandBuffer.ToArray());
             commandBuffer.Clear();
         }
     }
 }
Ejemplo n.º 2
0
 internal bool Drop(IReverserStream stream)
 {
     streams.Remove(stream);
     return streams.Count == 0;
 }