I have an application (server) and a client connected by WCF over named pipes (all .NET 4.0). All works fine. Both calling methods from client to server and server to client (callbacks) work fine. Now, how do I simply send an event from the server to the client?
What I try to accomplish is:
- Client calls a long term method on the server that returns immediately
- When server is ready processing it sends an Event to the client
- The client can then call a method on the server to get the results
How do I do this in a clean manner?
You could have a look at doing it asynchronously: How to: Call WCF Service Operations Asynchronously. (It’s a bit much code to paste here, so I’ll just leave the link.)