You are missing a subscription subscription. The way you do this is to create the [oneway] operation in your MyLog WCF server, calling it something like: " void SendMeLogs() ". This will open the client callback channel. Then you need to implement SendMeLogs() in lines of something like:
void SendMeLogs() { while(CheckLogsForNewData()) { PushOnTheClient(); } }
Since the SendMeLogs() function is enabled, the client will not block, but will begin subscribing to your log server. (you can search the web for sample code for a duplex calculator in wcf for a good example of this architecture). The key, however, is that you must have a good unsubscribe method, such as StopSendingMeLogs , to break the loop, and also make the PushOnTheClient function secure if the client terminates or connects to a specific client. The function " CheckLogsForNewData " should ideally be a common (static) implementation in your case
source share