public ReportStorage( IServerStatisticStorage serverStatisticStorage, IPlayerStatisticStorage playerStatisticStorage) { this.serverStatisticStorage = serverStatisticStorage; this.playerStatisticStorage = playerStatisticStorage; InitReports(); }
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(); }
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); }
public StatisticModule(IServerStatisticStorage serverStatistics, IPlayerStatisticStorage playerStatistics) { this.serverStatistics = serverStatistics; this.playerStatistics = playerStatistics; }