public void SetPackets(LogPacketCollection packets)
 {
     lock (packets)
     {
         SetPackets(packets.ToArray());
     }
 }
 public void SetPackets(LogPacketCollection packets)
 {
     lock (packets)
     {
         SetPackets(packets.ToArray());
     }
 }
Beispiel #3
0
 /// <summary>
 /// Get all input packets
 /// </summary>
 /// <returns>Array of input packets</returns>
 public LogPacket[] GetInputPackets()
 {
     lock (_inputPackets)
     {
         return(_inputPackets.ToArray());
     }
 }
Beispiel #4
0
        /// <summary>
        /// Get all packets from this document
        /// </summary>
        /// <returns>The array of packets</returns>
        public LogPacket[] GetPackets()
        {
            LogPacket[] ret;

            lock (_packets)
            {
                ret = _packets.ToArray();
            }

            return(ret);
        }