React to hosting changes
This commit is contained in:
parent
f640744f85
commit
08f0e1055b
|
|
@ -114,7 +114,9 @@ namespace Microsoft.AspNet.Mvc.FunctionalTests
|
|||
applicationBasePath,
|
||||
applicationWebSiteName);
|
||||
services.AddInstance<IApplicationEnvironment>(environment);
|
||||
services.AddInstance<IHostingEnvironment>(new HostingEnvironment(environment));
|
||||
var hostingEnvironment = new HostingEnvironment();
|
||||
hostingEnvironment.Initialize(applicationBasePath, environmentName: null);
|
||||
services.AddInstance<IHostingEnvironment>(hostingEnvironment);
|
||||
|
||||
// Injecting a custom assembly provider. Overrides AddMvc() because that uses TryAdd().
|
||||
var assemblyProvider = CreateAssemblyProvider(applicationWebSiteName);
|
||||
|
|
|
|||
Loading…
Reference in New Issue