private void ThrowOnNullOrEmptyCacheKey() { if (string.IsNullOrEmpty(CacheKey)) { throw Exceptions.CacheKeyNotSet(resourceType: ResourceType); } }