7 instantiations of HostBuilder
Aspire.Dashboard.Tests (1)
Middleware\ValidateTokenMiddlewareTests.cs (1)
68return await new HostBuilder()
Microsoft.DotNet.HotReload.Watch (1)
src\sdk\src\Dotnet.Watch\HotReloadClient\Web\KestrelWebSocketServer.cs (1)
44var host = new HostBuilder()
Microsoft.Extensions.Hosting (1)
Host.cs (1)
55HostBuilder builder = new();
Microsoft.Extensions.Hosting.Testing (1)
FakeHostBuilder.cs (1)
20: this(new HostBuilder(), options)
Microsoft.Extensions.Hosting.Testing.Tests (3)
HostingFakesExtensionsTests.cs (3)
49using var host = new HostBuilder().Build(); 71using var host = new HostBuilder().Build(); 100var exception = Record.Exception(() => new HostBuilder().Configure(null!));
11 references to HostBuilder
Microsoft.Extensions.Hosting (11)
Host.cs (5)
16/// Initializes a new instance of the <see cref="HostBuilder"/> class with pre-configured defaults. 19/// The following defaults are applied to the returned <see cref="HostBuilder"/>: 35/// Initializes a new instance of the <see cref="HostBuilder"/> class with pre-configured defaults. 38/// The following defaults are applied to the returned <see cref="HostBuilder"/>: 55HostBuilder builder = new();
HostApplicationBuilder.cs (5)
166(HostingEnvironment hostingEnvironment, PhysicalFileProvider physicalFileProvider) = HostBuilder.CreateHostingEnvironment(Configuration); 178HostBuilder.PopulateServiceCollection( 242using DiagnosticListener diagnosticListener = HostBuilder.LogHostBuilding(this); 250return HostBuilder.ResolveHost(_appServices, diagnosticListener); 302!string.Equals(previousContentRootPath, HostBuilder.ResolveContentRootPath(currentContentRootConfig, AppContext.BaseDirectory), StringComparison.OrdinalIgnoreCase))
HostBuilder.cs (1)
43/// Initializes a new instance of <see cref="HostBuilder"/>.