Define DefaultNodeHostingModel in one common place so it can be changed easily

This commit is contained in:
SteveSandersonMS
2016-06-01 16:15:34 +01:00
parent cb289fd387
commit 32ebaecdd8
5 changed files with 9 additions and 8 deletions

View File

@@ -44,7 +44,7 @@ namespace Microsoft.AspNetCore.Builder
var hostEnv = (IHostingEnvironment)appBuilder.ApplicationServices.GetService(typeof(IHostingEnvironment));
var nodeServices = Configuration.CreateNodeServices(new NodeServicesOptions
{
HostingModel = NodeHostingModel.Http,
HostingModel = Configuration.DefaultNodeHostingModel,
ProjectPath = hostEnv.ContentRootPath,
WatchFileExtensions = new string[] { } // Don't watch anything
});