StatLight.Core.Configuration.StatLightConfigurationFactory.RewriteXapWithSpecialFiles C# (CSharp) Метод

RewriteXapWithSpecialFiles() приватный Метод

private RewriteXapWithSpecialFiles ( byte xapHost, Func filesToCopyIntoHostXapFunc, string runtimeVersion ) : byte[]
xapHost byte
filesToCopyIntoHostXapFunc Func
runtimeVersion string
Результат byte[]
        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;
        }