public Plugin(ILogger <Plugin> logger, IConfigurationHandlerFactory configurationHandlerFactory, IDatabaseContextFactory databaseContextFactory, ITranslationLookup translationLookup, IMetaService metaService, IResourceQueryHelper <ChatSearchQuery, MessageResponse> chatQueryHelper, ILogger <StatManager> managerLogger, IEnumerable <IClientStatisticCalculator> statCalculators, IServerDistributionCalculator serverDistributionCalculator) { Config = configurationHandlerFactory.GetConfigurationHandler <StatsConfiguration>("StatsPluginSettings"); _databaseContextFactory = databaseContextFactory; _translationLookup = translationLookup; _metaService = metaService; _chatQueryHelper = chatQueryHelper; _managerLogger = managerLogger; _logger = logger; _statCalculators = statCalculators.ToList(); _serverDistributionCalculator = serverDistributionCalculator; }
public HitCalculator(ILogger <HitCalculator> logger, IDatabaseContextFactory contextFactory, ILookupCache <EFHitLocation> hitLocationCache, ILookupCache <EFWeapon> weaponCache, ILookupCache <EFWeaponAttachment> attachmentCache, ILookupCache <EFWeaponAttachmentCombo> attachmentComboCache, ILookupCache <EFServer> serverCache, ILookupCache <EFMeansOfDeath> modCache, IHitInfoBuilder hitInfoBuilder, IServerDistributionCalculator serverDistributionCalculator) { _contextFactory = contextFactory; _logger = logger; _hitLocationCache = hitLocationCache; _weaponCache = weaponCache; _attachmentCache = attachmentCache; _attachmentComboCache = attachmentComboCache; _serverCache = serverCache; _hitInfoBuilder = hitInfoBuilder; _modCache = modCache; _serverDistributionCalculator = serverDistributionCalculator; }