CSLA Light / Business Object Design Query

CSLA Light / Business Object Design Query

Old forum URL: forums.lhotka.net/forums/t/6141.aspx


PeteH posted on Tuesday, January 13, 2009

Hi, I am struggling a bit with my design for the following scenario;

We have a list of media programmes that users will have access to, the data sections of which are stored in XML format on our server; I have written a read only business object to read these and return them via the WcfProxy to Silverlight. So far, so good.

However, I have hit a bit of a brick wall as to the next step, which is to do with playback of the media itself. We have a silverlight media player which, at present, accesses the media file and then reads the markers into a client-side list.
This list has to then be looped through to match up with the relevant elements from the XML, so that we can display a transcript of each section to the user.

Obviously this breaks encapsulation and should be put into a business object too, but I am not sure as to how, as the media file is on a different server altogether to the XML file - my thinking is that I should use a factory object, via which I can talk to the media servervia WCF and retrieve a serialized data access object, containing the list of markers? Or is there a different, simpler pattern I should follow?

Thanks for any help.

RockfordLhotka replied on Tuesday, January 13, 2009

It sounds like the media server exposes some service you call to get the markers?

I'd create a business object that uses a local data portal to call that service to get the markers.

CSLA .NET for Silverlight doesn't have a RunLocal attribute, but the data portal accepts a parameter where you can tell it to run in local mode for a given call/object - so you get the same result.

Copyright (c) Marimer LLC