Fixing CacheClientConfiguration hash code

This commit is contained in:
Sebastien Ros
2014-07-30 11:28:01 -07:00
parent b96c98cb8b
commit 3b7ce64fb1

View File

@@ -57,9 +57,9 @@ namespace Orchard.Azure.Services.Caching {
public override int GetHashCode() {
int hash = 37;
hash = hash * 23 + HostIdentifier != null ? HostIdentifier.GetHashCode() : 0;
hash = hash * 23 + CacheName != null ? CacheName.GetHashCode() : 0;
hash = hash * 23 + AuthorizationToken != null ? AuthorizationToken.GetHashCode() : 0;
hash = hash * 23 + (HostIdentifier != null ? HostIdentifier.GetHashCode() : 0);
hash = hash * 23 + (CacheName != null ? CacheName.GetHashCode() : 0);
hash = hash * 23 + (AuthorizationToken != null ? AuthorizationToken.GetHashCode() : 0);
hash = hash * 23 + CompressionIsEnabled.GetHashCode();
return hash;
}