Свойство | Type | Description | |
---|---|---|---|
AddClientDiagnosticLevelToConfig | void | ||
CachingConfigurationFactoryMethod | void | ||
EnableAzureMemcacheRoleProcess | WebRole | ||
EnableMemcache | void | ||
ExecuteCmdlet | void | ||
IsCacheEnabled | bool | ||
IsCacheWorkerRole | bool | ||
UpdateWebConfig | void | ||
Version180Configuration | void |
Méthode | Description | |
---|---|---|
EnableAzureMemcacheRoleCommand ( ) : System |
Méthode | Description | |
---|---|---|
AddClientDiagnosticLevelToConfig ( Microsoft.WindowsAzure.Management.CloudService.ServiceConfigurationSchema.RoleSettings roleSettings ) : void | ||
CachingConfigurationFactoryMethod ( AzureService azureService, string roleName, bool isWebRole, string cacheWorkerRole, Startup startup, Endpoints endpoints, LocalResources localResources, Microsoft.WindowsAzure.Management.CloudService.ServiceDefinitionSchema.ConfigurationSetting &configurationSettings, string sdkVersion ) : void |
Factory method to apply memcache required configuration based on the installed SDK version.
|
|
EnableAzureMemcacheRoleProcess ( string roleName, string cacheWorkerRoleName, string rootPath ) : WebRole | ||
EnableMemcache ( string roleName, string cacheWorkerRoleName, string &message, AzureService &azureService ) : void |
Main entry for enabling memcache.
|
|
ExecuteCmdlet ( ) : void | ||
IsCacheEnabled ( Startup startup ) : bool |
Checks if memcache is already enabled or not for the given role startup. It does this by checking the role startup task.
|
|
IsCacheWorkerRole ( WorkerRole workerRole ) : bool |
Checks if the worker role is configured as caching worker role.
|
|
UpdateWebConfig ( string roleName, string cacheWorkerRoleName, string webConfigPath ) : void |
Updates the web.cloud.config with to auto-discover the cache role.
|
|
Version180Configuration ( AzureService azureService, string roleName, bool isWebRole, string cacheWorkerRole, Startup startup, Endpoints endpoints, LocalResources localResources, Microsoft.WindowsAzure.Management.CloudService.ServiceDefinitionSchema.ConfigurationSetting &configurationSettings ) : void |
Applies required configuration for enabling cache in SDK 1.8.0 version by: * Add MemcacheShim runtime installation. * Add startup task to install memcache shim on the client side. * Add default memcache internal endpoint. * Add cache diagnostic to local resources. * Add ClientDiagnosticLevel setting to service configuration. * Adjust web.config to enable auto discovery for the caching role.
|
public EnableAzureMemcacheRoleCommand ( ) : System | ||
Résultat | System |