I need to create a WCF service (duplex, because it's also about Silverlight and a lot of localhost - stuff, it's a very complicated, legacy - bound situation here...) which will accept multiple sessions, is able to send notifications to multiple clients, and nothing must be blocking.
So my first attempt was to create a class that employs a Queue
(SessionCallback = OperationContext * Action)
and uses that to dispatch the callbacks to the WCF service.
But this seems to be total overkill, also the handling of prematurely closed sessions (disconnects) is very... complicated.
Am I doing that wrong? Is there no easy solution for creating a duplex service? Simplex services in WCF are so easy, they are a no brainer, but duplex seems to be a real pain in the youknowwhat.