protected virtual void OnReplyReceived(SerialEventArgs info) { if (ReplyReceived != null) { Task.Run(() => ReplyReceived?.Invoke(this, info)); } }
public override void ReceiveReply(Byte[][] message) { var msg = new M(); msg.SetProperties(message); ReplyReceived?.Invoke(this, new MessageGotEventArgs <Message> { Message = msg }); }