MSDN提供了一些启示:
When AutoLoad is true, any property change affecting the load query
will automatically invoke a Load after the specified LoadDelay.
Examples of properties that impact the query are PageSize and
FilterOperator. Also, changes to dependency object collections, such as
FilterDescriptors and changes to the dependency properties on elements
contained in those collections, will affect the query and prompt
an automatic Load.
对于 RefreshInterval
When a non-zero TimeSpan is specified, a Load operation is automatically
invoked each time the interval elapses, as long as CanLoad is true. When
this property is set, a timer starts, regardless of the value of the
AutoLoad property or whether a Load has been executed previously
所以听起来 AutoLoad 和 RefreshInterval 根本没有直接关系。需要考虑的一件事是 CanLoad 属性,它在很多情况下都设置为 false。这可能是阻止您的 RefreshInterval 工作的原因。如果 DomainContext 中的任何实体有待处理的更改,CanLoad 将设置为 false,这有时会在您没有意识到的情况下发生。
DDS 的真正专家是 RIA 服务团队的成员。他们更多地在RIA 服务论坛上闲逛,所以询问可能是个好主意。