示例#1
0
 protected override void OnActive(ISession session)
 {
     AppendLine($"{session} 用户上线");
     _session = session;
     ClientCommand.RaiseCanExecuteChanged();
     base.OnActive(session);
 }
示例#2
0
 protected override void OnInActive(ISession session)
 {
     AppendLine($"{session} 用户下线");
     if (_session == session)
     {
         _session = null;
         ClientCommand.RaiseCanExecuteChanged();
     }
     base.OnInActive(session);
 }