public StatisticsService(
     IStorage <UserStatistics> statistics,
     IStorage <string> tokens,
     JsonDataService <StatisticsDb> jsonDataService,
     IOptions <JsonPathsSettings> jsonOptions,
     ILogger <StatisticsService> logger)
 {
     _statistics      = statistics;
     _tokens          = tokens;
     _jsonDataService = jsonDataService;
     _options         = jsonOptions.Value;
     _logger          = logger;
 }
Пример #2
0
 public UsersService(
     IStorage <User> users,
     IStorage <UserStatistics> statistics,
     JsonDataService <UserDb> userDataService,
     JsonDataService <StatisticsDb> statDataService,
     IOptions <JsonPathsSettings> options,
     ILogger <UsersService> logger)
 {
     _users           = users;
     _statistics      = statistics;
     _userDataService = userDataService;
     _statDataService = statDataService;
     _options         = options.Value;
     _logger          = logger;
 }