public override void ExecuteCmdlet() { ConfirmAction( Force.IsPresent, string.Format(Properties.Resources.RemoveServiceWarning, Name), Properties.Resources.RemoveServiceMessage, Name, () => { WriteVerbose(Properties.Resources.CacheServiceRemoveStarted); CacheClient.DeleteCacheService(Name); WriteVerbose(string.Format(Properties.Resources.CacheServiceRemoved, Name)); if (PassThru) { WriteObject(true); } }); }
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"); ConfirmAction( Force.IsPresent, string.Format(Properties.Resources.RemoveServiceWarning, Name), Properties.Resources.RemoveServiceMessage, Name, () => { WriteVerbose(Properties.Resources.CacheServiceRemoveStarted); CacheClient.DeleteCacheService(Name); WriteVerbose(string.Format(Properties.Resources.CacheServiceRemoved, Name)); if (PassThru) { WriteObject(true); } }); }