服务器断网信息提示不及时
wuyang26 opened this issue · comments
wuyang26 commented
在private void Session_KeepAlive(Session session, KeepAliveEventArgs e)函数中的
if (ServiceResult.IsBad(e.Status))
{
//这里面的提示至少延迟15秒
}
//添加类似如下(延迟3秒):
else
{
// update status.
UpdateStatus(false, e.CurrentTime, " Server Status:"
+ e.CurrentState+" Address:[{0}]", session.Endpoint.EndpointUrl);
}