Hi Steve,
I eventually resolved my issue!
You're right - implementing events over remoting does indeed turn your client into a server, and the referenced article does indeed caution against this approach, but it's do-able, workable and neat. And there's just as many articles showing how to do it:
http://www.codeproject.com/csharp/RemotingAndEvents.asp
http://www.bearcanyon.com/dotnet/#fireserverevents
My problem in the end was that my client-side sponsors - which themselves are remoting objects - weren't living for as long as the remoting objects, whose lifetime they were meant to be managing! Sounds like a really stupid mistake, but here's the thing - implementing events over remoting can easily get tricky, (and is a nightmare to sort out when trouble starts), so you've really got to know what you're doing.
I personally would say it's a better solution than your 'polling' workaround, and whilst I would certainly not advise tinkering with something that works, you might want to consider the alternative if you need to implement the same scenario again.
Many thanks for commenting on my issue,
Tamim.
|