1 write to _hostingEnvironment
Microsoft.AspNetCore.Hosting (1)
WebHostBuilder.cs (1)
40
_hostingEnvironment
= new HostingEnvironment();
8 references to _hostingEnvironment
Microsoft.AspNetCore.Hosting (8)
WebHostBuilder.cs (8)
263
((IWebHostEnvironment)
_hostingEnvironment
).Initialize(contentRootPath, _options);
264
_context.HostingEnvironment =
_hostingEnvironment
;
268
services.AddSingleton<IWebHostEnvironment>(
_hostingEnvironment
);
269
services.AddSingleton<IHostEnvironment>(
_hostingEnvironment
);
271
services.AddSingleton<AspNetCore.Hosting.IHostingEnvironment>(
_hostingEnvironment
);
272
services.AddSingleton<Extensions.Hosting.IHostingEnvironment>(
_hostingEnvironment
);
277
.SetBasePath(
_hostingEnvironment
.ContentRootPath)
319
var startupType = StartupLoader.FindStartupType(startupAssemblyName,
_hostingEnvironment
.EnvironmentName);