To poll or not to poll (in a web services context)
问题 We can use polling to find out about updates from some source, for example, clients connected to a webserver. WCF provides a nifty feature in the way of Duplex contracts, in which, I can maintain a connection to a client, and make invocations on that connection at will. Some peeps in the office were discussing the merits of both solutions, and I wanted to get feedback on when each strategy is best used. 回答1: I would use an event-based mechanism instead of polling. In WCF, you can do this