I have a MarshalByRefObject called "DefaultMeasurement" that contains a list of IPoints.
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 I first retrieve the DefaultMeasurement object from the server, all points receive serialization and during all subsequent calls to DefaultMeasurement.Points I get a list that was right when my client started. But at the same time, the state of at least one object in this list could change, and I do not get this current state, although the state is updated on the server. How to force update of this list?
further clarification:
- it will work as soon as I do DefaultPoint : MarshalByRefObject , but this is not an option, since it negatively affects performance
- "update" I mean changes to existing objects on the server, without adding / removing in the list itself
- I can have up to 80k DefaultPoint objects
source share