Beispiel #1
0
 public UserActivityPerDayController(
     IMemoryCache memoryCache,
     AllUserActivityCache allUserActivityCache = null,
     IGameStore gameStore = null)
 {
     _allUserActivityCache = allUserActivityCache ?? new AllUserActivityCache(memoryCache);
     _gameStore            = gameStore ?? new GameStore();
 }
 public UserActivityForMonthController(
     IMemoryCache memoryCache,
     AllUserActivityCache allUserActivityCache = null,
     IGameStore gameStore = null,
     ITimeSpentByHourCalculator timeSpentByHourCalculator = null)
 {
     _allUserActivityCache      = allUserActivityCache ?? new AllUserActivityCache(memoryCache);
     _gameStore                 = gameStore ?? new GameStore();
     _timeSpentByHourCalculator = timeSpentByHourCalculator ?? new TimeSpentByHourCalculator();
 }