UserStore.cs 426 B

1234567891011121314151617181920
  1. namespace OASystem.API.OAMethodLib.SignalR.Hubs
  2. {
  3. public class UserStore
  4. {
  5. public static List<UserModel> OnlineUser { get; set; } = new List<UserModel>();
  6. }
  7. public class UserModel
  8. {
  9. public int UserId { get; set; }
  10. public string ConnectionId { get; set; }
  11. public string GroupName { get; set; }
  12. public DateTime OnlineTime { get; set; } = DateTime.Now;
  13. }
  14. }