I have a duplex WCF service that clients connect to and wait for commands. The structure of the application is as below.
GUI(Asp.net)------------>WCF Service------------------>WCF Client
The from Asp.net pages you can run Gallio/MB Unit Tests. Those are passed to the Service and the service asks the client(s) to run the tests. It's all working good. What i want to implement now is to update the Asp.net application with the status of the test.
So if the user wants to run a whole assembly of tests at least i should know on the Asp.NET application which test is running and possibly the percentage of the test that is completed.
Any help on how to go about this / what approach to take is greatly appreciated.
Thanks
You need to define a callback contract and implement it in your ASP.Net website. You also need to use wsDualHttpBinding to add support for duplex operations.
The service communicates with the client application through a proxy reference that it obtains from OperationContext, as the following code examples show.