C# Класс Microsoft.WindowsAzure.Commands.CloudService.Development.EnableAzureMemcacheRoleCommand

Наследование: CmdletBase
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
AddClientDiagnosticLevelToConfig void
CachingConfigurationFactoryMethod void
EnableAzureMemcacheRoleProcess WebRole
EnableMemcache void
ExecuteCmdlet void
IsCacheEnabled bool
IsCacheWorkerRole bool
UpdateWebConfig void
Version180Configuration void

Открытые методы

Метод Описание
EnableAzureMemcacheRoleCommand ( ) : System

Приватные методы

Метод Описание
AddClientDiagnosticLevelToConfig ( RoleSettings roleSettings ) : void
CachingConfigurationFactoryMethod ( CloudServiceProject cloudServiceProject, string roleName, bool isWebRole, string cacheWorkerRole, Startup startup, Endpoints endpoints, LocalResources localResources, Commands.Utilities.Common.XmlSchema.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, CloudServiceProject &cloudServiceProject ) : 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 ( CloudServiceProject cloudServiceProject, string roleName, bool isWebRole, string cacheWorkerRole, Startup startup, Endpoints endpoints, LocalResources localResources, Commands.Utilities.Common.XmlSchema.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.

Описание методов

EnableAzureMemcacheRoleCommand() публичный Метод

public EnableAzureMemcacheRoleCommand ( ) : System
Результат System