C# Class Microsoft.WindowsAzure.Commands.Utilities.CloudService.CacheConfigurationFactory

Mostra file Open project: AzureRT/azure-sdk-tools

Private Properties

Property Type Description
AddCacheConfiguration void
AddClientDiagnosticLevelToConfig void
CacheClientCommonConfiguration void
CacheClientRole180 void
CacheRole180 void
CacheWorkerRole180 void
UpdateWebConfig void

Public Methods

Method Description
GetCacheRoleConfigurationAction ( string version ) : RoleInfo>.Action

Gets the configuration action to enable dedicated caching on a role for the given SDK version.

GetClientRoleConfigurationAction ( string version ) : Action

Gets the configuration action to enable using dedicated caching on a role for the given SDK version.

Private Methods

Method Description
AddCacheConfiguration ( RoleSettings cacheRoleSettings, string connectionString = "" ) : void
AddClientDiagnosticLevelToConfig ( RoleSettings roleSettings ) : void
CacheClientCommonConfiguration ( CloudServiceProject cloudServiceProject, string roleName, bool isWebRole, string cacheWorkerRole, Startup startup, Endpoints endpoints, LocalResources localResources, Common.XmlSchema.ServiceDefinitionSchema.ConfigurationSetting &configurationSettings ) : void
CacheClientRole180 ( CloudServiceProject cloudServiceProject, string roleName, string cacheWorkerRoleName ) : void

Configuration action to enable using dedicated caching on the client role.

CacheRole180 ( string rootPath, RoleInfo cacheRoleInfo ) : void

Configuration required to enable dedicated caching on a given role.

CacheWorkerRole180 ( string rootPath, RoleInfo cacheRoleInfo ) : void
UpdateWebConfig ( string roleName, string cacheWorkerRoleName, string webConfigPath ) : void

Updates the web.cloud.config with to auto-discover the cache role.

Method Details

GetCacheRoleConfigurationAction() public static method

Gets the configuration action to enable dedicated caching on a role for the given SDK version.
public static GetCacheRoleConfigurationAction ( string version ) : RoleInfo>.Action
version string The SDK version
return RoleInfo>.Action

GetClientRoleConfigurationAction() public static method

Gets the configuration action to enable using dedicated caching on a role for the given SDK version.
public static GetClientRoleConfigurationAction ( string version ) : Action
version string The SDK version
return Action