Пример #1
0
 public ReportStorage(
     IServerStatisticStorage serverStatisticStorage,
     IPlayerStatisticStorage playerStatisticStorage)
 {
     this.serverStatisticStorage = serverStatisticStorage;
     this.playerStatisticStorage = playerStatisticStorage;
     InitReports();
 }
Пример #2
0
        public DataStatisticStorage(
            IDataRepository statisticStorage,
            IGlobalServerStatisticStorage globalStatisticStorage,
            IServerStatisticStorage serverStatisticStorage,
            IPlayerStatisticStorage playerStatisticStorage,
            IReportStorage reportStorage)
        {
            logger.Info("Initialize full statistic storage");

            this.statisticStorage       = statisticStorage;
            this.globalStatisticStorage = globalStatisticStorage;
            this.serverStatisticStorage = serverStatisticStorage;
            this.playerStatisticStorage = playerStatisticStorage;
            this.reportStorage          = reportStorage;
            InitStatisticsProviders();
        }
Пример #3
0
 public virtual void Setup()
 {
     GlobalStatisticStorage = new GlobalServerStatisticStorage();
     ServerStatisticStorage = new ServerStatisticStorage(GlobalStatisticStorage);
     PlayerStatisticStorage = new PlayerStatisticStorage();
     ReportStorage          = new ReportStorage(ServerStatisticStorage, PlayerStatisticStorage);
     DocumentStore          = RavenDbStore.GetStore(new ApplicationOptions
     {
         InMemory    = true,
         UnitTesting = true
     });
     DataRepository   = new RavenDbStorage(DocumentStore);
     StatisticStorage = new DataStatisticStorage(
         DataRepository,
         GlobalStatisticStorage,
         ServerStatisticStorage,
         PlayerStatisticStorage,
         ReportStorage);
 }
Пример #4
0
 public StatisticModule(IServerStatisticStorage serverStatistics, IPlayerStatisticStorage playerStatistics)
 {
     this.serverStatistics = serverStatistics;
     this.playerStatistics = playerStatistics;
 }