mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-24 18:47:30 +00:00
Design review: Change AddNodeServices to take an Action<NodeServicesOptions> like other aspects of MVC DI config
This commit is contained in:
@@ -33,9 +33,8 @@ namespace Microsoft.AspNetCore.SpaServices.Prerendering
|
||||
// in your startup file, but then again it might be confusing that you don't need to.
|
||||
if (_nodeServices == null)
|
||||
{
|
||||
_nodeServices = _fallbackNodeServices = Configuration.CreateNodeServices(
|
||||
serviceProvider,
|
||||
new NodeServicesOptions());
|
||||
_nodeServices = _fallbackNodeServices = NodeServicesFactory.CreateNodeServices(
|
||||
new NodeServicesOptions(serviceProvider));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user