Edit

Share via


CustomPeerResolverService.RefreshInterval Property

Definition

Gets or sets the length of time that entries remain valid in a peer resolver service's registration lookup table.

public:
 property TimeSpan RefreshInterval { TimeSpan get(); void set(TimeSpan value); };
public TimeSpan RefreshInterval { get; set; }
member this.RefreshInterval : TimeSpan with get, set
Public Property RefreshInterval As TimeSpan

Property Value

TimeSpan that specifies the length of time that entries remain valid in a peer resolver service's registration lookup table.

Exceptions

The interval is either zero or greater than Int32.MaxValue.

An attempt to set the property was made after a call to Open().

Remarks

This property must be set before the peer resolver service has been and must not be zero. The default interval is 2 minutes.

When the amount of time supplied to this property has passed for a given entry in a peer resolver service's registration lookup table, that entry is marked for deletion. The delete occurs when interval specified in the CleanupInterval property occurs. For example, if this property is set to a timespan of 10 minutes, entries in the registration lookup table will become stale and marked for deletion after the interval has passed. As a result, the peer resolver client must update every ten minutes to avoid having their entry deleted.

Applies to