A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.webhost.createdefaultbuilder below:

WebHost.CreateDefaultBuilder Method (Microsoft.AspNetCore) | Microsoft Learn

Source:
WebHost.cs
Source:
WebHost.cs
Source:
WebHost.cs

Initializes a new instance of the WebHostBuilder class with pre-configured defaults using typed Startup.

public:
generic <typename TStartup>
 where TStartup : class static Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ CreateDefaultBuilder(cli::array <System::String ^> ^ args);
public static Microsoft.AspNetCore.Hosting.IWebHostBuilder CreateDefaultBuilder<TStartup>(string[] args) where TStartup : class;
static member CreateDefaultBuilder : string[] -> Microsoft.AspNetCore.Hosting.IWebHostBuilder (requires 'Startup : null)
Public Shared Function CreateDefaultBuilder(Of TStartup As Class) (args As String()) As IWebHostBuilder
Type Parameters
TStartup

The type containing the startup methods for the application.

Parameters
args
String[]

The command line args.

Returns

The initialized IWebHostBuilder.

Remarks

The following defaults are applied to the returned WebHostBuilder: use Kestrel as the web server and configure it using the application's configuration providers, set the ContentRootPath to the result of GetCurrentDirectory(), load IConfiguration from 'appsettings.json' and 'appsettings.[EnvironmentName].json', load IConfiguration from User Secrets when EnvironmentName is 'Development' using the entry assembly, load IConfiguration from environment variables, load IConfiguration from supplied command line args, configure the ILoggerFactory to log to the console and debug output, enable IIS integration.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4