Ejemplo n.º 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);
 }
Ejemplo n.º 2
0
 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);
 }
Ejemplo n.º 3
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);
 }