WebHostBuilderExtensions.UseTestServer Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Overload
UseTestServer(IWebHostBuilder) |
Abilita il TestServer servizio. |
UseTestServer(IWebHostBuilder, Action<TestServerOptions>) |
Abilita il TestServer servizio. |
UseTestServer(IWebHostBuilder)
- Origine:
- WebHostBuilderExtensions.cs
- Origine:
- WebHostBuilderExtensions.cs
- Origine:
- WebHostBuilderExtensions.cs
- Origine:
- WebHostBuilderExtensions.cs
- Origine:
- WebHostBuilderExtensions.cs
- Origine:
- WebHostBuilderExtensions.cs
- Origine:
- WebHostBuilderExtensions.cs
Abilita il TestServer servizio.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ UseTestServer(Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ builder);
public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseTestServer (this Microsoft.AspNetCore.Hosting.IWebHostBuilder builder);
static member UseTestServer : Microsoft.AspNetCore.Hosting.IWebHostBuilder -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
<Extension()>
Public Function UseTestServer (builder As IWebHostBuilder) As IWebHostBuilder
Parametri
- builder
- IWebHostBuilder
Oggetto IWebHostBuilder.
Restituisce
Oggetto IWebHostBuilder.
Si applica a
UseTestServer(IWebHostBuilder, Action<TestServerOptions>)
- Origine:
- WebHostBuilderExtensions.cs
- Origine:
- WebHostBuilderExtensions.cs
- Origine:
- WebHostBuilderExtensions.cs
- Origine:
- WebHostBuilderExtensions.cs
Abilita il TestServer servizio.
public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseTestServer (this Microsoft.AspNetCore.Hosting.IWebHostBuilder builder, Action<Microsoft.AspNetCore.TestHost.TestServerOptions> configureOptions);
static member UseTestServer : Microsoft.AspNetCore.Hosting.IWebHostBuilder * Action<Microsoft.AspNetCore.TestHost.TestServerOptions> -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
<Extension()>
Public Function UseTestServer (builder As IWebHostBuilder, configureOptions As Action(Of TestServerOptions)) As IWebHostBuilder
Parametri
- builder
- IWebHostBuilder
Oggetto IWebHostBuilder.
- configureOptions
- Action<TestServerOptions>
Configura le opzioni del server di test
Restituisce
Oggetto IWebHostBuilder.