/// <summary> /// Generates a key for the <paramref name="resource"/>. /// </summary> /// <param name="resource">The resource.</param> /// <returns>Returns the generated key.</returns> public static ResourceCacheKey Create(IResource resource) { // validate arguments if (resource == null) throw new ArgumentNullException("resource"); return new ResourceCacheKey("Resource_" + resource.GetResourceIdentifier()); }