mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-24 18:47:30 +00:00
Create new top-level DefaultNodeInstance concept that will soon hold the "connection draining" logic
This commit is contained in:
@@ -37,7 +37,6 @@ namespace Microsoft.AspNetCore.SpaServices.Prerendering
|
||||
{
|
||||
_nodeServices = _fallbackNodeServices = Configuration.CreateNodeServices(new NodeServicesOptions
|
||||
{
|
||||
HostingModel = Configuration.DefaultNodeHostingModel,
|
||||
ProjectPath = _applicationBasePath
|
||||
});
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user