/// <summary> /// Creates a new CachedCrestRequestHandler /// </summary> /// <param name="serializer"></param> public CachedCrestRequestHandler(ISerializer serializer) { Serializer = serializer; PublicMaxConcurrentRequests = DefaultPublicMaxConcurrentRequests; AuthedMaxConcurrentRequests = DefaultAuthedMaxConcurrentRequests; _publicPool = new Semaphore(PublicMaxConcurrentRequests, PublicMaxConcurrentRequests); _authedPool = new Semaphore(AuthedMaxConcurrentRequests, AuthedMaxConcurrentRequests); UserAgent = Config.UserAgent; Charset = DefaultCharset; Cache = new EveLibFileCache(Config.AppData + Config.Separator + "EveCrestCache", "register"); CacheLevel = CacheLevel.Default; }
public EveApi(ILogger logger, IEveLibCache eveCache) { _logger = logger; InitializeCache(eveCache); }
public static void InitializeCache(IEveLibCache eveCache) { //if (eZet.EveLib.Core.Config.CacheFactory == null) eZet.EveLib.Core.Config.CacheFactory = (arg) => eveCache; }
/// <summary> /// Initializes a new instance of the <see cref="ZkbRequestHandler" /> class. /// </summary> /// <param name="serializer">The serializer.</param> /// <param name="cache">The cache.</param> public ZkbRequestHandler(ISerializer serializer, IEveLibCache cache) { Serializer = serializer; Cache = cache; }
public CharacterNameDict(ICacheLocalProvider cacheProvider, IEveLibCache eveLibCache) { _cacheProvider = cacheProvider; EveApi.InitializeCache(eveLibCache); }
public RefTypeDict(ICacheLocalProvider cacheProvider, IEveLibCache eveLibCache) { _cacheProvider = cacheProvider; EveApi.InitializeCache(eveLibCache); }
public CacheLocalProvider(IEveLibCache eveLibCache) { _eveLibCache = eveLibCache; }