Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }