Silverlight and push notifications

后端 未结 8 909
梦如初夏
梦如初夏 2020-12-08 05:23

I am creating a Silverlight 2 user interface to a remote instrument. There are two concurrent users at different sites interacting with the instrument (operator at the instr

相关标签:
8条回答
  • 2020-12-08 06:04

    Alternatively,

    if you want a native silverlight API with no proxies, bridges or webservers involved you could use Nirvana from my-Channels as your messaging middleware. Check out Nirvana from my-Channels and their showcase site. (sorry i am a new user and cant submit links):

    Alex

    0 讨论(0)
  • 2020-12-08 06:04

    EDIT: it's actually working fine. I got badly bitten by the "hidden variable" in a closure :(

    I used the PollingDuplex for SL2 and I think that it's not ready for production yet.

    My main issue is the fact that it doesn't discriminate on the clients on the same machine. If I run 2 clients then one of them won't be able to poll the server anymore and will die of timeout. There is a SessionId that is different for the 2 clients but it's just ignored on the client side.

    Likewise, if I kill a client and then create a new one afterwards then the new client will get the push updates from the previous client for a while.

    Did anyone encounter the same issues or are they fixed in SL3?

    Actually I ran some more demo codes and realised that for some reason you have to specify the InstanceContextMode and InstanceMode so that the service is session based and not a singleton (as far as I can tell). There are clear performance issues in the simple demo code that I pulled.

    It is quite unfortunate that this behaviour wasn't documented.

    0 讨论(0)
提交回复
热议问题