Example #1
0
        public Task <IResponse> RunAsync()
        {
            using var stream  = new MemoryStream(_archive);
            using var archive = new ZipArchive(stream);

            var deployItems = archive.Entries.Select(entry => _destination + Path.DirectorySeparatorChar + entry.FullName);

            _log.DeployItemsReceived(deployItems);

            archive.ExtractToDirectory(_destination, overwriteFiles: true);

            return(Task.FromResult <IResponse>(null));
        }