Create new top-level DefaultNodeInstance concept that will soon hold the "connection draining" logic

This commit is contained in:
SteveSandersonMS
2016-07-06 18:23:25 +01:00
parent 4ee09cbe82
commit 4fb3b18868
19 changed files with 210 additions and 89 deletions

View File

@@ -37,7 +37,6 @@ namespace Microsoft.AspNetCore.SpaServices.Prerendering
{
_nodeServices = _fallbackNodeServices = Configuration.CreateNodeServices(new NodeServicesOptions
{
HostingModel = Configuration.DefaultNodeHostingModel,
ProjectPath = _applicationBasePath
});
}

View File

@@ -25,7 +25,7 @@ namespace Microsoft.AspNetCore.SpaServices.Prerendering
string requestPathAndQuery,
object customDataParameter)
{
return nodeServices.InvokeExport<RenderToStringResult>(
return nodeServices.InvokeExportAsync<RenderToStringResult>(
NodeScript.Value.FileName,
"renderToString",
applicationBasePath,