문제

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.

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top