1 write to _hostingEnvironment
Microsoft.AspNetCore.Hosting (1)
WebHostBuilder.cs (1)
39
_hostingEnvironment
= new HostingEnvironment();
8 references to _hostingEnvironment
Microsoft.AspNetCore.Hosting (8)
WebHostBuilder.cs (8)
262
((IWebHostEnvironment)
_hostingEnvironment
).Initialize(contentRootPath, _options);
263
_context.HostingEnvironment =
_hostingEnvironment
;
267
services.AddSingleton<IWebHostEnvironment>(
_hostingEnvironment
);
268
services.AddSingleton<IHostEnvironment>(
_hostingEnvironment
);
270
services.AddSingleton<AspNetCore.Hosting.IHostingEnvironment>(
_hostingEnvironment
);
271
services.AddSingleton<Extensions.Hosting.IHostingEnvironment>(
_hostingEnvironment
);
276
.SetBasePath(
_hostingEnvironment
.ContentRootPath)
318
var startupType = StartupLoader.FindStartupType(startupAssemblyName,
_hostingEnvironment
.EnvironmentName);