Monitor data sent to windows service through windows form
I have a windows service that is installed on a server and act a server that waits requests from other clients(server-client), when it receives a request it handles it and log data sent to it in a text file and reply with acknowledgment to the client, other windows service which act as a client that send data to servers and log data sent and acknowledgment received in another text f开发者_开发知识库ile.
I need to have windows form that monitor data transmitted between server and client.
ex: When server win service receives request message the win form will show it in text area and when the win service reply with acknowledgment also will be showed in the text area.
How can i implement this using C#
Thanks in advance
I don't see how asp.net falls into this considering you explicitly ask for a windows form application, but I digress. There would be two logical ways,
1) Your winform monitors the log file from the servers windows service and appends to a textbox
2) You modify the servers window service to pass data to the windows form - a psuedo logging server.
精彩评论