简体   繁体   中英

xml from a message Queue serialise with WPF/c# interface

I have a message Queue and I am designing a WPF interface for it. The actual message queue(MSMQ) contains information to do with trains(model trains) so i need to show their exact location in real time. From section to section, the interface needs to replicate this.

Any clues, directions? I am okay designing the animations and the message Q, but it is the synch between them that I need to do.

Message queueing is not a real time transport. It is very asynchronous in its nature. You have to do lots of polling to get "real time data".

You could pick any format you like, you don't even have to use XML. But if XML is your route you could define an XSD-schema and generate a C# class with xsd.exe . Or you could just define a C# class and serialize it with System.Xml.Serialization.XmlSerializer .

But to be honest, are you sure you should use MSMQ for "real time" data?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM