public byte[] HandleReceivedData(DataContainer data, bool rpcResponse = false) { Interlocked.Increment(ref Count); Recieved = TestUtil.ToString(data.Payload); return(null); }
public void HandleSentData(DataContainer data) { Interlocked.Increment(ref Count); Sent = TestUtil.ToString(data.Payload); }
public byte[] HandleReceivedData(DataContainer data) { RecievedMessage = Encoding.ASCII.GetString(data.Payload); return(Response != null?TestUtil.ToByte(Response) : null); }