I got a MarshalByRefObject named "DefaultMeasurement", which contains a List of IPoint-objects.
public class DefaultMeasurement : MarshalByRefObject, IMeasurement
{
private List<IPoint> iPoints;
public this[int aIndex]
{
get { return iPoints[aIndex];}
}
}
[Serializable]
public class DefaultPoint : IPoint, ISerializable
{
public int Value {get;set;}
}
When first retrieving the DefaultMeasurement object from the server all the points get serialized and during all subsequent calls to DefaultMeasurement.Points I get the list that was correct upon startup of my client. But in the meantime the state of at least one object in that list might have changed and I don't get that current state, although in the server that state gets updated. How do I force an update of that list?
further clarification:
- it will work once I do DefaultPoint : MarshalByRefObject
, but that is not an option as it negatively affects performance
- by 'update' I mean changes to existing objects on the server, no adding / removing on the list itself
- I might have up to 80k DefaultPoint
objects
mode
or Activation you are using. Lots of info here codeproject.com/KB/WCF/net_remoting.aspx – MomentlyIPoint
inherit fromMarshalByRefObject
too (and not serializable). The single-call/singleton settings could also make a difference. – Hatpin