6 references to Initialize
Microsoft.AspNetCore.Hosting (2)
GenericHost\WebHostBuilderBase.cs (1)
85
webHostBuilderContext.HostingEnvironment.
Initialize
(context.HostingEnvironment.ContentRootPath, options, baseEnvironment: context.HostingEnvironment);
WebHostBuilder.cs (1)
262
((IWebHostEnvironment)_hostingEnvironment).
Initialize
(contentRootPath, _options);
Microsoft.AspNetCore.Hosting.Tests (4)
HostingEnvironmentExtensionsTests.cs (4)
24
env.
Initialize
(Path.GetFullPath("."), webHostOptions);
37
env.
Initialize
(Path.GetFullPath("testroot"), CreateWebHostOptions());
50
env.
Initialize
(Path.GetFullPath(Path.Combine("testroot", "wwwroot")), CreateWebHostOptions());
71
env.
Initialize
(Path.GetFullPath("."), webHostOptions);