Пример #1
0
 public MemoryCachedDatabaseValueWithSource(
     IMemoryCache cache,
     TimeSpan memoryDuration,
     IKeyedResourceManager resourceManager)
 {
     this.cache           = cache;
     this.memoryDuration  = memoryDuration;
     this.resourceManager = resourceManager;
 }
Пример #2
0
 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);
 }
Пример #3
0
 public GuildMemberCache(IGuildService guildService, IMemoryCache memoryCache, IDatabaseCache dbCache, IKeyedResourceManager resourceManager)
 {
     this.cache        = new DbMemCachedResource <IEnumerable <BlizzardPlayer> >(TimeSpan.FromDays(1.0), dbCache, memoryCache, resourceManager);
     this.guildService = guildService;
 }
Пример #4
0
 public RealmStoreById(IGuildService guildService, IMemoryCache memoryCache, GuildToolsContext context, IKeyedResourceManager resourceManager)
 {
     this.MemoryDuration = TimeSpan.FromDays(1);
     this.guildService   = guildService;
     this.context        = context;
     this.cache          = new MemoryCachedDatabaseValue <StoredRealm>(memoryCache, this.MemoryDuration, resourceManager);
 }
Пример #5
0
 public GuildCache(IGuildService guildService, IMemoryCache memoryCache, IDatabaseCache dbCache, IKeyedResourceManager resourceManager)
 {
     this.cache        = new DbMemCachedResource <GuildSlim>(TimeSpan.FromDays(1.0), dbCache, memoryCache, resourceManager);
     this.guildService = guildService;
 }
Пример #6
0
 public DbMemCachedResource(TimeSpan expiresAfter, IDatabaseCache databaseCache, IMemoryCache memoryCache, IKeyedResourceManager resourceManager)
 {
     this.expiresAfter    = expiresAfter;
     this.cache           = new DatabaseCacheWithMemoryCache(expiresAfter, databaseCache, memoryCache);
     this.resourceManager = resourceManager;
 }
Пример #7
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);
 }
Пример #8
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;
 }