Exemplo n.º 1
0
 public UsersService(IMeLikeContext context, IUserConnectionsRepository connectionsRepository, IMapper mapper)
 {
     _context = context;
     _connectionsRepository = connectionsRepository;
     _mapper = mapper;
     _users  = _context.Users.AsQueryable();
 }
Exemplo n.º 2
0
 public ChatHub(ILogger <ChatHub> log,
                IUserConnectionsRepository userConnectionsRepository,
                ISupportUsersRegistry supportUsersRegistry,
                ISupportRequestRoomsRepository supportRequestRooms)
 {
     this.log = log;
     this.userConnectionsRepository = userConnectionsRepository;
     this.supportUsersRegistry      = supportUsersRegistry;
     this.supportRequestRooms       = supportRequestRooms;
     this.log.LogInformation("Created chat hub");
 }