TestServerOptions 類別

定義

測試伺服器的選項。

public class TestServerOptions
type TestServerOptions = class
Public Class TestServerOptions
繼承
TestServerOptions

建構函式

TestServerOptions()

測試伺服器的選項。

屬性

AllowSynchronousIO

取得或設定值,這個值控制 是否允許 和 ResponseRequest 同步 IO。 預設值是 false

BaseAddress

取得或設定與測試伺服器所傳回之 HttpClient 相關聯的基底位址。 預設為 http://localhost/.

PreserveExecutionContext

取得或設定值,這個值會控制是否 ExecutionContext 將 和 AsyncLocal<T> 值從用戶端保留到伺服器。 預設值是 false

適用於