Brought back support for compression in Azure database caching.

This commit is contained in:
Daniel Stolt
2013-08-31 13:52:06 +02:00
committed by Sebastien Ros
parent 1edff1f34c
commit 4f47c6a967
2 changed files with 16 additions and 12 deletions

View File

@@ -51,7 +51,7 @@ namespace Orchard.Azure.Services.Caching {
public bool CompressionIsEnabled {
get;
protected set;
set;
}
public bool AutodiscoverIsEnabled {
@@ -77,7 +77,8 @@ namespace Orchard.Azure.Services.Caching {
dataCacheFactoryConfiguration.AutoDiscoverProperty = new DataCacheAutoDiscoverProperty(true, HostIdentifier);
}
else {
dataCacheFactoryConfiguration.Servers = new[] {new DataCacheServerEndpoint(Hostname, Port)};
dataCacheFactoryConfiguration.AutoDiscoverProperty = new DataCacheAutoDiscoverProperty(false);
dataCacheFactoryConfiguration.Servers = new[] { new DataCacheServerEndpoint(Hostname, Port) };
dataCacheFactoryConfiguration.SecurityProperties = new DataCacheSecurity(AuthorizationToken);
}