Ejemplo n.º 1
0
        public async Task <bool> Delete()
        {
            var packageFile = GetPackageFile(await GetUserName());

            if (packageFile == null)
            {
                return(false);
            }

            var packageExisted = packageFile.Delete();
            var linkExisted    = linkFile.Delete();

            DebugExtensions.Assert(packageExisted == linkExisted);

            return(packageExisted || linkExisted);
        }
Ejemplo n.º 2
0
        public async Task <bool> Delete()
        {
            var packageBlob = GetPackageBlob(await GetUserName());

            if (packageBlob == null)
            {
                return(false);
            }

            var packageExisted = await packageBlob.DeleteIfExistsAsync();

            var entityExisted = await table.DeleteIfExistsAsync(packageState, packageName);

            DebugExtensions.Assert(packageExisted == entityExisted);

            return(packageExisted || entityExisted);
        }