public RewriteZipHostWithFiles ( byte hostXap, IEnumerable |
||
hostXap | byte | |
filesToPlaceIntoHostXap | IEnumerable |
|
runtimeVersion | string | |
return | IXapZipArchive |
private byte[] RewriteXapWithSpecialFiles(byte[] xapHost, Func<IEnumerable<ITestFile>> filesToCopyIntoHostXapFunc, string runtimeVersion) { var files = filesToCopyIntoHostXapFunc(); if (files.Any()) { var rewriter = new XapRewriter(_logger); xapHost = rewriter.RewriteZipHostWithFiles(xapHost, files, runtimeVersion) .ToByteArray(); } return xapHost; }
private byte[] RewriteXapWithSpecialFiles(byte[] xapHost, IEnumerable<ITestFile> filesToCopyIntoHostXap) { if (filesToCopyIntoHostXap.Any()) { var rewriter = new XapRewriter(_logger); xapHost = rewriter.RewriteZipHostWithFiles(xapHost, filesToCopyIntoHostXap) .ToByteArray(); } return xapHost; }