I’m using WCF.
I have two applications: “Main” and “Worker”.
Sometimes application “Main” is giving task for “Worker”.
“Worker” is doing work and when work is done it gives result to “Main”.
How should this communication be done?
I need to call Worker.AddTask(Task) from Main and Main.AddResult(Result) from Worker.
Is there better way than setting up two Services?
This sounds classic for WCF’s callbacks- it allows for two-way async communication between server and client (in your case, the server would be the ‘worker’, and the ‘main’ application would invoke its methods in order to start processing. When worker is done, it will invoke a callback on main.)
LMGTFY 🙂