public bool IsConfigurationEquivalentTo(HttpLinkHcoCacheEntryConfiguration configuration) { return(this.CacheMode == configuration.CacheMode && this.CacheScope == configuration.CacheScope && this.LocalExpirationDate == configuration.LocalExpirationDate && this.ETag == configuration.ETag && this.LastModified == configuration.LastModified); }
public static HttpLinkHcoCacheEntry FromConfiguration( string linkResponseContent, HttpLinkHcoCacheEntryConfiguration configuration) { return(new HttpLinkHcoCacheEntry( linkResponseContent, configuration.CacheScope, configuration.LocalExpirationDate, configuration.CacheMode, configuration.ETag, configuration.LastModified)); }