UseAzureAppServices(IWebHostBuilder)
|
設定應用程式以使用 Azure AppServices 整合。
|
CaptureStartupErrors(IWebHostBuilder, Boolean)
|
設定是否應該在 Web 主機的組態設定中擷取啟動錯誤。
啟用時,會攔截啟動例外狀況,並傳回錯誤頁面。 如果停用,則會傳播啟動例外狀況。
|
PreferHostingUrls(IWebHostBuilder, Boolean)
|
指出主機是否應該接聽 上 IWebHostBuilder 設定的 URL,而不是在 上設定的 IServer URL。
|
Start(IWebHostBuilder, String[])
|
啟動 Web 主機並接聽指定的 URL。
|
SuppressStatusMessages(IWebHostBuilder, Boolean)
|
指定是否應該隱藏啟動狀態訊息。
|
UseConfiguration(IWebHostBuilder, IConfiguration)
|
在 Web 主機上使用指定的組態設定。
|
UseContentRoot(IWebHostBuilder, String)
|
指定 Web 主機要使用的內容根目錄。
|
UseEnvironment(IWebHostBuilder, String)
|
指定 Web 主機要使用的環境。
|
UseServer(IWebHostBuilder, IServer)
|
指定 Web 主機要使用的伺服器。
|
UseShutdownTimeout(IWebHostBuilder, TimeSpan)
|
指定等待 Web 主機關機的時間量。
|
UseStartup(IWebHostBuilder, String)
|
指定元件,其中包含 Web 主機要使用的啟動類型。
|
UseUrls(IWebHostBuilder, String[])
|
指定 Web 主機將接聽的 URL。
|
UseWebRoot(IWebHostBuilder, String)
|
指定 Web 主機要使用的 Webroot 目錄。
|
Configure(IWebHostBuilder, Action<IApplicationBuilder>)
|
指定要用來設定 Web 應用程式的啟動方法。
|
Configure(IWebHostBuilder, Action<WebHostBuilderContext,IApplicationBuilder>)
|
指定要用來設定 Web 應用程式的啟動方法。
|
ConfigureAppConfiguration(IWebHostBuilder, Action<IConfigurationBuilder>)
|
加入委派以設定 IConfigurationBuilder 將建構 的 IConfiguration 。
|
ConfigureLogging(IWebHostBuilder, Action<WebHostBuilderContext,ILoggingBuilder>)
|
新增用於設定所提供 LoggerFactory 的委派。 可能會多次呼叫此項。
|
ConfigureLogging(IWebHostBuilder, Action<ILoggingBuilder>)
|
新增用於設定所提供 ILoggingBuilder 的委派。 可能會多次呼叫此項。
|
UseDefaultServiceProvider(IWebHostBuilder, Action<WebHostBuilderContext,ServiceProviderOptions>)
|
設定預設服務提供者
|
UseDefaultServiceProvider(IWebHostBuilder, Action<ServiceProviderOptions>)
|
設定預設服務提供者
|
UseStartup(IWebHostBuilder, Type)
|
指定 Web 主機要使用的啟動類型。
|
UseStartup<TStartup>(IWebHostBuilder)
|
指定 Web 主機要使用的啟動類型。
|
UseStartup<TStartup>(IWebHostBuilder, Func<WebHostBuilderContext,TStartup>)
|
指定建立 Web 主機所要使用的啟動實例的處理站。
|
UseStaticWebAssets(IWebHostBuilder)
|
將 WebRootFileProvider 設定為使用參考專案和套件所定義的靜態 Web 資產。
|
UseHttpSys(IWebHostBuilder)
|
將Http.sys指定為 Web 主機要使用的伺服器。
|
UseHttpSys(IWebHostBuilder, Action<HttpSysOptions>)
|
將Http.sys指定為 Web 主機要使用的伺服器。
|
UseIIS(IWebHostBuilder)
|
設定伺服器在 AspNetCoreModule 後方執行時應該接聽的埠和基底路徑。
應用程式也會設定為擷取啟動錯誤。
|
UseIISIntegration(IWebHostBuilder)
|
設定伺服器在 AspNetCoreModule 後方執行時應該接聽的埠和基底路徑。
應用程式也會設定為擷取啟動錯誤。
|
ConfigureKestrel(IWebHostBuilder, Action<WebHostBuilderContext,KestrelServerOptions>)
|
設定 Kestrel 選項,但不註冊 IServer。 請參閱 UseKestrel(IWebHostBuilder)。
|
ConfigureKestrel(IWebHostBuilder, Action<KestrelServerOptions>)
|
設定 Kestrel 選項,但不註冊 IServer。 請參閱 UseKestrel(IWebHostBuilder)。
|
UseKestrel(IWebHostBuilder)
|
將 Kestrel 指定為 Web 主機要使用的伺服器。
|
UseKestrel(IWebHostBuilder, Action<WebHostBuilderContext,KestrelServerOptions>)
|
將 Kestrel 指定為 Web 主機要使用的伺服器。
|
UseKestrel(IWebHostBuilder, Action<KestrelServerOptions>)
|
將 Kestrel 指定為 Web 主機要使用的伺服器。
|
UseKestrel(IWebHostBuilder, Action<KestrelServerOptions>)
|
將 Kestrel 指定為 Web 主機要使用的伺服器。
|
UseLibuv(IWebHostBuilder)
|
已過時。
將 Libuv 指定為 Kestrel 要使用的傳輸。
|
UseLibuv(IWebHostBuilder, Action<LibuvTransportOptions>)
|
已過時。
將 Libuv 指定為 Kestrel 要使用的傳輸。
|
UseQuic(IWebHostBuilder)
|
的 IWebHost 產生器。
|
UseQuic(IWebHostBuilder, Action<QuicTransportOptions>)
|
的 IWebHost 產生器。
|
UseQuic(IWebHostBuilder)
|
將 Quic 指定為 Kestrel 要使用的傳輸。
|
UseQuic(IWebHostBuilder, Action<QuicTransportOptions>)
|
將 Quic 指定為 Kestrel 要使用的傳輸。
|
UseSockets(IWebHostBuilder)
|
指定 Sockets 做為 Kestrel 要使用的傳輸。
|
UseSockets(IWebHostBuilder, Action<SocketTransportOptions>)
|
指定 Sockets 做為 Kestrel 要使用的傳輸。
|
UseWebListener(IWebHostBuilder)
|
將 WebListener 指定為 Web 主機要使用的伺服器。
|
UseWebListener(IWebHostBuilder, Action<WebListenerOptions>)
|
將 WebListener 指定為 Web 主機要使用的伺服器。
|
ConfigureTestContainer<TContainer>(IWebHostBuilder, Action<TContainer>)
|
使用 中 servicesConfiguration 提供的服務來 IWebHostBuilder 設定 實例。
|
ConfigureTestServices(IWebHostBuilder, Action<IServiceCollection>)
|
使用 中 servicesConfiguration 提供的服務來 IWebHostBuilder 設定 實例。
|
UseSolutionRelativeContentRoot(IWebHostBuilder, String, String)
|
設定 相對於 的內容根 solutionRelativePath 目錄。
|
UseSolutionRelativeContentRoot(IWebHostBuilder, String, String, String)
|
設定 相對於 的內容根 solutionRelativePath 目錄。
|
UseTestServer(IWebHostBuilder)
|
TestServer啟用服務。
|
UseTestServer(IWebHostBuilder, Action<TestServerOptions>)
|
TestServer啟用服務。
|