Example #1
0
 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;
 }
Example #3
0
        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));
 }
Example #5
0
        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;
        }
Example #6
0
 public GuildService(IBlizzardService blizzardService, ICallThrottler throttler)
 {
     this.blizzardService = blizzardService;
     this.throttler       = throttler;
 }
Example #7
0
 public HomeModel(IBlizzardService blizzardController)
 {
     _blizzardController = blizzardController;
 }
Example #8
0
 public LocalRaiderIoService(IBlizzardService blizzardService, IRaiderIoService raiderIoService)
 {
     this.blizzardService = blizzardService;
     this.raiderIoService = raiderIoService;
 }
Example #9
0
 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;
 }
Example #10
0
 public RaiderIoService(ICallThrottler throttler, IBlizzardService blizzardService, HttpClient client)
 {
     this.client    = client;
     this.throttler = throttler;
 }
Example #11
0
 public DataModel(IBlizzardService blizzardController)
 {
     _blizzardController = blizzardController;
 }