public void Handle(SelectedMessageChanged @event) { if (@event.SelectedMessage == null) { SelectedMessage = null; } }
protected virtual IList<HeaderInfo> DecodeHeader(MessageBody message) { var headers = message.Headers; var decodedResult = _decoder.Decode(headers); return decodedResult.IsParsed ? decodedResult.Value : new HeaderInfo[0]; }
protected override IList<HeaderInfo> DecodeHeader(MessageBody message) { HeaderContent = Encoding.UTF8.GetString(message.Headers); var decodedResult = _decoder.Decode(message.Headers); return decodedResult.IsParsed ? decodedResult.Value : new HeaderInfo[0]; }
public MessageBody MapBody(Message source) { var m = new MessageBody(source.Id, source.Label, source.SentTime) { HeaderRaw = source.Extension, }; return m; }
public void Handle(SelectedMessageChanged @event) { if (SelectedMessage == @event.Message) //Workaround, to force refresh the property. Should refactor to use the same approach as hex viewer. { OnSelectedMessageChanged(); } else { SelectedMessage = @event.Message; } }
public MessageBody MapBody(Message source) { var m = new MessageBody(source.Id, source.Label, source.SentTime) { BodyRaw = source.BodyStream.GetAsBytes(), HeaderRaw = source.Extension, CorrelationId = source.CorrelationId, TransactionId = source.TransactionId, Destination = source.DestinationQueue == null ? null : MapQueue(source.DestinationQueue), Response = source.ResponseQueue == null ? null : MapQueue(source.ResponseQueue), }; return m; }
public MessageHeaderDecoder(IContentDecoder<IList<HeaderInfo>> decoder, MessageBody message) { RawHeader = Encoding.UTF8.GetString(message.HeaderRaw); var decodedResult = decoder.Decode(message.HeaderRaw); DecodedHeaders = decodedResult.IsParsed ? decodedResult.Value : new HeaderInfo[0]; }
protected override IList<HeaderInfo> DecodeHeader(MessageBody message) { var headerDecoder = new MessageHeaderDecoder(_decoder, message); HeaderContent = headerDecoder.RawHeader; return headerDecoder.DecodedHeaders; }
public void Handle(MessageBodyLoaded @event) { SelectedMessage = @event.Message; }
public void Handle(SelectedMessageChanged @event) { SelectedMessage = @event.Message; }
public MessageBodyLoaded(MessageBody message) { Message = message; }