WCF - how to write a publisher\subscriber service that publishes only to specific clients?
问题 I am writing a WCF service in a Publish-Subscribe pattern. When someone publishes an event, I don't want to straight away send it to all the clients. I want to be able to, for each client, check if that client needs to be notified about that publish. Basically this will be done by accessing a database, and checking if that client has subscribed for that specific event with those parameters (cannot be done in advance, needs to be checked only against database). Currently I am working using