public GroupMembersipService( IUsersService usersService, IGroupsService groupsService, RedisService redisService, ILogger <GroupMembersipService> logger) { _logger = logger; _usersService = usersService; _groupsService = groupsService; _redisService = redisService; _usersService.NameChanged += (sender, args) => ChangeUserName(args.userId, args.name); _groupsService.NameChanged += (sender, args) => ChangeGroupName(args.groupId, args.name); }
public KeyService(RedisService redisService) { _redisService = redisService; _redisService.KeyDeleted += (sender, args) => KeyDeleted(args); }