Pregunta

Im having hard time to understand the advantages of callback on the basic way of making our client to be a service too and our service to be a client too.

¿Fue útil?

Solución

I can give you one big advantage. We have an application that involves a client (WPF) and a Windows service. Normally the client calls the service (via WCF) to retrieve and/or save data etc. But, there are times we want the service to send the client a message, to notify the client it needs to perform a certain action (like shutdown or display a message to the user - could be anything). A callback is perfect for this.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top