Implement and document asp-prerender-data

This commit is contained in:
SteveSandersonMS
2016-06-21 15:46:52 +01:00
parent 1a53411046
commit ea0a32a15b
5 changed files with 45 additions and 8 deletions

View File

@@ -22,7 +22,8 @@ namespace Microsoft.AspNetCore.SpaServices.Prerendering
INodeServices nodeServices,
JavaScriptModuleExport bootModule,
string requestAbsoluteUrl,
string requestPathAndQuery)
string requestPathAndQuery,
object customDataParameter)
{
return nodeServices.InvokeExport<RenderToStringResult>(
NodeScript.Value.FileName,
@@ -30,7 +31,8 @@ namespace Microsoft.AspNetCore.SpaServices.Prerendering
applicationBasePath,
bootModule,
requestAbsoluteUrl,
requestPathAndQuery);
requestPathAndQuery,
customDataParameter);
}
}
}