Beispiel #1
0
 public OnlineFilter(RequestDelegate next, IOnlineUsersService onlineUsersService, IHttpContextAccessor httpcontext)
 {
     _next        = next;
     _onlineUsers = onlineUsersService;
     _httpcontext = httpcontext;
     _client      = new RedisClient("127.0.0.1", 6379);
 }
 public OnlineUsersController(IOnlineUsersService onlineUsersService,
                              IFriendsRelationService friendsRelationService,
                              ILogger <OnlineUsersController> logger,
                              IUserService userService)
 {
     _onlineUsersService = onlineUsersService;
     _logger             = logger;
     _userService        = userService;
 }
Beispiel #3
0
 public NotificationHub(IOnlineUsersService onlineUsersService,
                        IMessageService messageService,
                        ILogger <NotificationHub> logger,
                        INotificationService notificationService)
 {
     _onlineUsersService  = onlineUsersService;
     _messageService      = messageService;
     _logger              = logger;
     _notificationService = notificationService;
 }