Split LeafOutputFile content into different table for performance
This commit is contained in:
@@ -61,7 +61,7 @@ namespace LeafWeb.Web.Services
|
||||
|
||||
var outputErrorMessage = leafInput.OutputErrorMessage;
|
||||
if (outputErrorMessage != null)
|
||||
SendLeafWebError(leafInput, outputErrorMessage.Contents.GetString());
|
||||
SendLeafWebError(leafInput, outputErrorMessage.FileContents.Contents.GetString());
|
||||
else
|
||||
SendLeafWebSuccess(leafInput);
|
||||
}
|
||||
@@ -99,7 +99,7 @@ namespace LeafWeb.Web.Services
|
||||
var fileStreams =
|
||||
(from outputFile in
|
||||
leafInput.OutputFiles
|
||||
select Tuple.Create(outputFile, new MemoryStream(outputFile.Contents))).ToList();
|
||||
select Tuple.Create(outputFile, new MemoryStream(outputFile.FileContents.Contents))).ToList();
|
||||
try
|
||||
{
|
||||
foreach (var fileStream in fileStreams)
|
||||
@@ -151,7 +151,7 @@ namespace LeafWeb.Web.Services
|
||||
return Environment.NewLine + Environment.NewLine
|
||||
+ "The following warning message was generated."
|
||||
+ Environment.NewLine + Environment.NewLine
|
||||
+ leafInput.OutputWarningMessage.Contents.GetString()
|
||||
+ leafInput.OutputWarningMessage.FileContents.Contents.GetString()
|
||||
+ Environment.NewLine;
|
||||
return string.Empty;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user