public override void ExecuteCmdlet() { List <PSCacheService> cacheServices = CacheClient.GetCacheServices(Name); if (!string.IsNullOrEmpty(Name) && cacheServices.Count == 0) { throw new ArgumentException(string.Format(Properties.Resources.CacheServiceNotFound, Name)); } WriteObject(cacheServices); }
public override void ExecuteCmdlet() { WriteWarning("Managed Cache will be retired on 11/30/2016. Please migrate to Azure Redis Cache. For more information, see http://go.microsoft.com/fwlink/?LinkID=717458"); List <PSCacheService> cacheServices = CacheClient.GetCacheServices(Name); if (!string.IsNullOrEmpty(Name) && cacheServices.Count == 0) { throw new ArgumentException(string.Format(Properties.Resources.CacheServiceNotFound, Name)); } WriteObject(cacheServices); }