CustomPeerResolverService.Refresh(RefreshInfo) 方法
定义
刷新对等解析程序服务的注册查找表中的项的过期时间。Refreshes the expiry of an entry in the peer resolver service's registration lookup table.
public:
virtual System::ServiceModel::PeerResolvers::RefreshResponseInfo ^ Refresh(System::ServiceModel::PeerResolvers::RefreshInfo ^ refreshInfo);
public virtual System.ServiceModel.PeerResolvers.RefreshResponseInfo Refresh (System.ServiceModel.PeerResolvers.RefreshInfo refreshInfo);
abstract member Refresh : System.ServiceModel.PeerResolvers.RefreshInfo -> System.ServiceModel.PeerResolvers.RefreshResponseInfo
override this.Refresh : System.ServiceModel.PeerResolvers.RefreshInfo -> System.ServiceModel.PeerResolvers.RefreshResponseInfo
Public Overridable Function Refresh (refreshInfo As RefreshInfo) As RefreshResponseInfo
参数
- refreshInfo
- RefreshInfo
包含项的网络 ID 和注册 ID 的 RefreshInfo 对象,该项为对等解析程序注册查找表中的要刷新的项。RefreshInfo object that contains the mesh ID and the registration ID of the entry to refresh in the peer resolver service's registration lookup table.
返回
包含新刷新的注册项的 RefreshResponseInfo。RefreshResponseInfo that contains the newly refreshed registration entry.
实现
例外
refreshInfo 可以设置为 null。refreshInfo is set to null.
Open() 的以前调用没有启动自定义对等解析程序服务。The custom peer resolver service has not been started with a previous call to Open().
注解
刷新项可以延长项的有效期的时间长度。A refresh of an entry extends the length of time for which it remains valid. 必须在提供给此方法的 RefreshInfo 对象中提供唯一标识项时要用到的所有信息。All information used to uniquely identify the entry must be supplied in the RefreshInfo object supplied to this method.