Naming of a class which is receiving raw messages and calls known interface
How to name a class which is responsible for:
receiving messages like Receive(string address, byte[] body) { /* ... */},
parse address, deserealize body, and call the right method of known
interface tree with typed parameters (taken from deserialized body), for
example Open(int timeout)
react on events of known interface tree, like event Action<string>
OpeningError, build the right address string, serialize parameters to
byte[] and raise own event Action<string, byte[]> NewMessage
No comments:
Post a Comment