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 RealmStoreByValues(IGuildService guildService, IMemoryCache memoryCache, GuildToolsContext context, IKeyedResourceManager resourceManager) { this.MemoryDuration = TimeSpan.FromDays(1); this.guildService = guildService; this.context = context; this.cache = new MemoryCachedDatabaseValueWithSource <StoredRealm>(memoryCache, this.MemoryDuration, resourceManager); }
public PlayerStoreByValue( IGuildService guildService, IMemoryCache memoryCache, GuildToolsContext context, IKeyedResourceManager resourceManager) { this.guildService = guildService; this.context = context; this.cache = new MemoryCachedDatabaseValueWithSource <StoredPlayer>(memoryCache, this.MemoryDuration, resourceManager); }