public int GetResourceId(StringKeyBase resourceId)
 {
     if (resourceId == null)
     {
         throw new ArgumentNullException(nameof(resourceId));
     }
     PerformanceResourceIndex.log.Debug((object)string.Format("Identifying {0} - {1}", (object)((KeyBase)resourceId).get_ResourceType(), (object)resourceId.get_Id()));
     return(this.cache.Value.GetOrAdd(new PerformanceResourceKey(resourceId), new Func <PerformanceResourceKey, int>(this.AddToDatabase)));
 }
 public PerformanceResourceKey(StringKeyBase stringKey)
     : this(((KeyBase)stringKey).get_ResourceType(), stringKey.get_Id())
 {
 }