WebHostBuilderExtensions.UseTestServer Metode
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Overload
UseTestServer(IWebHostBuilder) |
TestServer Mengaktifkan layanan. |
UseTestServer(IWebHostBuilder, Action<TestServerOptions>) |
TestServer Mengaktifkan layanan. |
UseTestServer(IWebHostBuilder)
- Sumber:
- WebHostBuilderExtensions.cs
- Sumber:
- WebHostBuilderExtensions.cs
- Sumber:
- WebHostBuilderExtensions.cs
- Sumber:
- WebHostBuilderExtensions.cs
- Sumber:
- WebHostBuilderExtensions.cs
- Sumber:
- WebHostBuilderExtensions.cs
- Sumber:
- WebHostBuilderExtensions.cs
TestServer Mengaktifkan layanan.
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
Parameter
- builder
- IWebHostBuilder
Mengembalikan
Berlaku untuk
UseTestServer(IWebHostBuilder, Action<TestServerOptions>)
- Sumber:
- WebHostBuilderExtensions.cs
- Sumber:
- WebHostBuilderExtensions.cs
- Sumber:
- WebHostBuilderExtensions.cs
- Sumber:
- WebHostBuilderExtensions.cs
TestServer Mengaktifkan layanan.
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
Parameter
- builder
- IWebHostBuilder
- configureOptions
- Action<TestServerOptions>
Mengonfigurasi opsi server pengujian