C# Класс Microsoft.Azure.Commands.ManagedCache.PSCacheClient

Показать файл Открыть проект

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

Метод Описание
AddNamedCache ( string cacheServiceName, string namedCacheName, string expiryPolicy, int expiryTimeInMinutes, bool noeviction, bool notifications, bool highAvailability ) : CloudServiceResource
CreateCacheService ( string subscriptionID, string cacheServiceName, string location, CacheServiceSkuType sku, string memorySize ) : CloudServiceResource
DeleteCacheService ( string cacheServiceName ) : void
GetAccessKeys ( string cacheServiceName ) : CachingKeysResponse
GetCacheServices ( string cacheServiceName ) : List
GetLocations ( ) : List
GetNamedCache ( string cacheServiceName, string namedCacheName ) : CloudServiceResource
NormalizeCacheServiceName ( string cacheServiceName ) : string
PSCacheClient ( ) : System
PSCacheClient ( AzureSMProfile profile, AzureSubscription currentSubscription ) : System
RegenerateAccessKeys ( string cacheServiceName, string keyType ) : CachingKeysResponse
RemoveNamedCache ( string cacheServiceName, string namedCacheName, Action ConfirmAction, bool force ) : void
SetNamedCache ( string cacheServiceName, string namedCacheName, string expiryPolicy, int expiryTimeInMinutes, bool noeviction, bool notifications, bool highAvailability, Action ConfirmAction, bool force ) : CloudServiceResource
UpdateCacheService ( string cacheServiceName, CacheServiceSkuType sku, string memory, Action ConfirmAction, bool force ) : CloudServiceResource

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

Метод Описание
Base32NoPaddingEncode ( byte data ) : string
CloudServiceExists ( string cloudServiceName ) : bool
EnsureCloudServiceExists ( string subscriptionId, string location ) : string
FetchCloudServiceResource ( string cacheServiceName, string &cloudServiceName ) : CloudServiceResource
GetAssociatedCloudServiceName ( string cacheServiceName ) : string
GetCacheService ( string cloudServiceName, string cacheServiceName ) : CloudServiceResource
GetCloudServiceName ( string subscriptionId, string region ) : string

The following logic was ported from Azure Cache management portal. It is critical to maintain the parity. Do not modify unless you understand the consequence.

GetPromptMessgaeIfThereIsDataLoss ( CacheServiceSkuType existingSkuType, CacheServiceSkuType newSkuType, int existingSkuCount, int newSkuCount ) : string
InitializeParameters ( string location, CacheServiceSkuType sku, string memorySize ) : CacheServiceCreateParameters
IsCachingResource ( string resourceType ) : bool
ProvisionCacheService ( string cloudServiceName, string cacheServiceName, CacheServiceCreateParameters param, bool createOrUpdate ) : CloudServiceResource
WaitForProvisionDone ( string cacheServiceName, string cloudServiceName ) : CloudServiceResource
WriteProgress ( string progress ) : void

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

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

public AddNamedCache ( string cacheServiceName, string namedCacheName, string expiryPolicy, int expiryTimeInMinutes, bool noeviction, bool notifications, bool highAvailability ) : CloudServiceResource
cacheServiceName string
namedCacheName string
expiryPolicy string
expiryTimeInMinutes int
noeviction bool
notifications bool
highAvailability bool
Результат CloudServiceResource

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

public CreateCacheService ( string subscriptionID, string cacheServiceName, string location, CacheServiceSkuType sku, string memorySize ) : CloudServiceResource
subscriptionID string
cacheServiceName string
location string
sku CacheServiceSkuType
memorySize string
Результат CloudServiceResource

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

public DeleteCacheService ( string cacheServiceName ) : void
cacheServiceName string
Результат void

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

public GetAccessKeys ( string cacheServiceName ) : CachingKeysResponse
cacheServiceName string
Результат CachingKeysResponse

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

public GetCacheServices ( string cacheServiceName ) : List
cacheServiceName string
Результат List

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

public GetLocations ( ) : List
Результат List

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

public GetNamedCache ( string cacheServiceName, string namedCacheName ) : CloudServiceResource
cacheServiceName string
namedCacheName string
Результат CloudServiceResource

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

public NormalizeCacheServiceName ( string cacheServiceName ) : string
cacheServiceName string
Результат string

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

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

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

public PSCacheClient ( AzureSMProfile profile, AzureSubscription currentSubscription ) : System
profile Microsoft.Azure.Commands.Common.Authentication.Models.AzureSMProfile
currentSubscription Microsoft.Azure.Commands.Common.Authentication.Models.AzureSubscription
Результат System

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

public RegenerateAccessKeys ( string cacheServiceName, string keyType ) : CachingKeysResponse
cacheServiceName string
keyType string
Результат CachingKeysResponse

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

public RemoveNamedCache ( string cacheServiceName, string namedCacheName, Action ConfirmAction, bool force ) : void
cacheServiceName string
namedCacheName string
ConfirmAction Action
force bool
Результат void

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

public SetNamedCache ( string cacheServiceName, string namedCacheName, string expiryPolicy, int expiryTimeInMinutes, bool noeviction, bool notifications, bool highAvailability, Action ConfirmAction, bool force ) : CloudServiceResource
cacheServiceName string
namedCacheName string
expiryPolicy string
expiryTimeInMinutes int
noeviction bool
notifications bool
highAvailability bool
ConfirmAction Action
force bool
Результат CloudServiceResource

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

public UpdateCacheService ( string cacheServiceName, CacheServiceSkuType sku, string memory, Action ConfirmAction, bool force ) : CloudServiceResource
cacheServiceName string
sku CacheServiceSkuType
memory string
ConfirmAction Action
force bool
Результат CloudServiceResource