コード例 #1
0
        public async Task <ActionResult> DeleteContentAsync(string contentType, string storeId, [FromQuery] string[] urls)
        {
            var storageProvider = _blobContentStorageProviderFactory.CreateProvider(GetContentBasePath(contentType, storeId));
            await storageProvider.RemoveAsync(urls);

            //ToDo Reset cached items
            //_cacheManager.ClearRegion($"content-{storeId}");
            ContentCacheRegion.ExpireRegion();
            return(Ok());
        }