public GuildStoreByName(IBlizzardService blizzardService, IMemoryCache memoryCache, GuildToolsContext context, IKeyedResourceManager resourceManager) { this.MemoryDuration = TimeSpan.FromDays(1); this.blizzardService = blizzardService; this.context = context; this.cache = new MemoryCachedDatabaseValueWithSource <StoredGuild>(memoryCache, this.MemoryDuration, resourceManager); }
public TestController(Counter counter, IBlizzardService blizzardService, ILogger <TestController> logger, DataContext dbContext, IHttpClientFactory httpClientFactory) { this.counter = counter; this.blizzardService = blizzardService; this.logger = logger; this.dbContext = dbContext; this.httpClientFactory = httpClientFactory; }
public GuildStatsCache(IConfiguration configuration, IBlizzardService blizzardService, IDataRepository dataRepo, IServiceProvider serviceProvider) { this.cache = new Dictionary <string, ExpiringData <string> >(); this.blizzardService = blizzardService; string connectionString = configuration.GetValue <string>("ConnectionStrings:Database"); this.updatingSet = new HashSet <string>(); this.dataRepo = dataRepo; this.serviceProvider = serviceProvider; }
public PullRealmDataBackgroundJob( IBlizzardService blizzardService, IConnectedRealmRepository connectedRealmRepository, IRealmRepository realmRepository, IMapper mapper, ILogger <PullRealmDataBackgroundJob> logger) { this.blizzardService = blizzardService ?? throw new ArgumentNullException(nameof(blizzardService)); this.connectedRealmRepository = connectedRealmRepository ?? throw new ArgumentNullException(nameof(connectedRealmRepository)); this.realmRepository = realmRepository ?? throw new ArgumentNullException(nameof(realmRepository)); this.mapper = mapper ?? throw new ArgumentNullException(nameof(mapper)); this.logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public DataController( IOptions <ConnectionStrings> connectionStrings, IDataRepository repository, IGuildService guildService, IBlizzardService blizzardService, IGuildStatsRetriever guildStatsRetriever, IRaiderIoStatsRetriever raiderIoStatsRetriever, IGuildCache guildCache, IPlayerCache playerCache, IGuildMemberCache guildMemberCache, IRealmsCache realmsCache, IGuildStoreByName guildStore, IPlayerStoreByValue playerStore, IRealmStoreByValues realmStoreByValues, RoleManager <IdentityRole> roleManager, UserManager <EfModels.UserWithData> userManager, IMapper mapper) { this.connectionStrings = connectionStrings.Value; this.blizzardService = blizzardService; this.guildStatsRetriever = guildStatsRetriever; this.raiderIoStatsRetriever = raiderIoStatsRetriever; this.guildService = guildService; this.dataRepo = repository; this.guildCache = guildCache; this.playerCache = playerCache; this.guildMemberCache = guildMemberCache; this.realmsCache = realmsCache; this.playerStore = playerStore; this.guildStore = guildStore; this.realmStoreByValues = realmStoreByValues; this.roleManager = roleManager; this.userManager = userManager; this.mapper = mapper; }
public GuildService(IBlizzardService blizzardService, ICallThrottler throttler) { this.blizzardService = blizzardService; this.throttler = throttler; }
public HomeModel(IBlizzardService blizzardController) { _blizzardController = blizzardController; }
public LocalRaiderIoService(IBlizzardService blizzardService, IRaiderIoService raiderIoService) { this.blizzardService = blizzardService; this.raiderIoService = raiderIoService; }
public RealmsCache(IBlizzardService blizzardService, IMemoryCache memoryCache, IDatabaseCache dbCache, IKeyedResourceManager resourceManager) { this.cache = new DbMemCachedResource <IEnumerable <Realm> >(TimeSpan.FromDays(1.0), dbCache, memoryCache, resourceManager); this.blizzardService = blizzardService; }
public RaiderIoService(ICallThrottler throttler, IBlizzardService blizzardService, HttpClient client) { this.client = client; this.throttler = throttler; }
public DataModel(IBlizzardService blizzardController) { _blizzardController = blizzardController; }