示例#1
0
 /// <summary>
 /// 获取所在线客户端id
 /// </summary>
 /// <returns></returns>
 public IEnumerable <Guid> GetClientListByOnline()
 {
     return(_redis.HKeys($"{_redisPrefix}Online").Select(a => Guid.TryParse(a, out var tryguid) ? tryguid : Guid.Empty).Where(a => a != Guid.Empty));
 }