New Posts New Posts RSS Feed: DF Silverlight - "Subscribe to server events"
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

DF Silverlight - "Subscribe to server events"

 Post Reply Post Reply
Author
philcockfield View Drop Down
Newbie
Newbie
Avatar

Joined: 03-Jun-2009
Posts: 19
Post Options Post Options   Quote philcockfield Quote  Post ReplyReply Direct Link To This Post Topic: DF Silverlight - "Subscribe to server events"
    Posted: 01-Aug-2009 at 4:04pm
On page 21 of the developer manual (v5.2) it says (in relation to DF for Silverlight):

"The client can request non-data services to be executed on the server and subscribe to server events."

Where do I look for this feature? The closest thing I can find is "Push Notification", on page 440, however here it says that this feature is not available for SL.

Any help or pointers or general patterns on how to handle events emanating from the server and flowing back to the client would be really helpful. Thanks!
Back to Top
kimj View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 09-May-2007
Posts: 1391
Post Options Post Options   Quote kimj Quote  Post ReplyReply Direct Link To This Post Posted: 04-Aug-2009 at 10:08am

I think that chapter may need a little re-work.  Push, which does allow the client to receive notifications (events, data, whatever) from the server, is not currently available in DevForce Silverlight.  We do support various server-side features and "event handlers" - eg, IEntityLoginManager, IEntityServerFetch*, IEntityServerSav*, POCO providers, and a few more.  There's also the InvokeServerMethodAsync call from the client which can be used as a kind of back door to server methods.

What kind of server events are you interested in? 
 
Back to Top
philcockfield View Drop Down
Newbie
Newbie
Avatar

Joined: 03-Jun-2009
Posts: 19
Post Options Post Options   Quote philcockfield Quote  Post ReplyReply Direct Link To This Post Posted: 04-Aug-2009 at 10:18am
>> What kind of server events are you interested in?

I'm interested in being able to update UI when changes occur to entities on the server.

I'm scouting around for best approaches to doing this, from gross "Polling" of the server through to some kind of clean duplex network protocol.

There's some promise in the WCF Duplex Service, but I haven't dug into that yet. I saw the reference and wondered if you guys had crossed that bridge already with DevForce 4 SL.
Back to Top
kimj View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 09-May-2007
Posts: 1391
Post Options Post Options   Quote kimj Quote  Post ReplyReply Direct Link To This Post Posted: 04-Aug-2009 at 10:50am
When we implement Push in DevForce Silverlight, it will be as a WCF duplex service (that's how it's implemented in both DevForce Classic and Universal), but unfortunately we haven't yet taken the plunge.  It is on the horizon, but the feature request hasn't bubbled to the top of our queue yet. 
 
(If I were in your position I'd probably look at writing a duplex service, and either sending the changed data to the client as an EntityCacheState or else as a message telling the client to re-execute a query.) 
Back to Top
philcockfield View Drop Down
Newbie
Newbie
Avatar

Joined: 03-Jun-2009
Posts: 19
Post Options Post Options   Quote philcockfield Quote  Post ReplyReply Direct Link To This Post Posted: 04-Aug-2009 at 11:01am
Awesome ... thanks for the guidance.
Back to Top
skingaby View Drop Down
DevForce MVP
DevForce MVP
Avatar

Joined: 23-Apr-2008
Location: United States
Posts: 146
Post Options Post Options   Quote skingaby Quote  Post ReplyReply Direct Link To This Post Posted: 08-Oct-2009 at 12:46pm
Any further news on this? We have a multiuser Silverlight app where it is very likely that simultaneous changes will be made to entities and those changes need to be pushed out to the other clients in real time. Thanks.
Back to Top
kimj View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 09-May-2007
Posts: 1391
Post Options Post Options   Quote kimj Quote  Post ReplyReply Direct Link To This Post Posted: 08-Oct-2009 at 12:55pm
Unfortunately, we still haven't implemented Push in DevForce Silverlight.  It's a possibility for our December release, but not definite.
Back to Top
foxy1982 View Drop Down
Newbie
Newbie


Joined: 09-Feb-2010
Posts: 1
Post Options Post Options   Quote foxy1982 Quote  Post ReplyReply Direct Link To This Post Posted: 09-Feb-2010 at 1:11pm
Hi,

did this make it into the Silverlight release in December?

Thanks
Back to Top
skingaby View Drop Down
DevForce MVP
DevForce MVP
Avatar

Joined: 23-Apr-2008
Location: United States
Posts: 146
Post Options Post Options   Quote skingaby Quote  Post ReplyReply Direct Link To This Post Posted: 11-Feb-2010 at 10:23am
No. I for one am still hoping it makes it into the March release.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down