Ejemplo n.º 1
0
 public EntityLookupService(IEveMonClient client)
 {
     client.ThrowIfNull(nameof(client));
     this.client = client;
     entities    = new ConcurrentDictionary <int, Entity>(4, 256);
     entities.TryAdd(0, Entity.CreateUnknown(0));
     affil = new AffilLookupService(client, entities);
     name  = new NameLookupService(client, entities);
     // Get refresh interval of the ID/name endpoints
     refreshInterval = EsiEndpoints.UniverseNames.GetAttributeOfType <
         EsiEndpointAttribute>()?.DefaultCache ?? TimeSpan.FromMinutes(30.0);
 }