public void SetPackets(LogPacketCollection packets) { lock (packets) { SetPackets(packets.ToArray()); } }
public void SetPackets(LogPacketCollection packets) { lock (packets) { SetPackets(packets.ToArray()); } }
/// <summary> /// Get all input packets /// </summary> /// <returns>Array of input packets</returns> public LogPacket[] GetInputPackets() { lock (_inputPackets) { return(_inputPackets.ToArray()); } }
/// <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); }