Dela via


TestServerOptions Class

Definition

Options for the test server.

public class TestServerOptions
type TestServerOptions = class
Public Class TestServerOptions
Inheritance
TestServerOptions

Constructors

TestServerOptions()

Properties

AllowSynchronousIO

Gets or sets a value that controls whether synchronous IO is allowed for the Request and Response. The default value is false.

BaseAddress

Gets or sets the base address associated with the HttpClient returned by the test server. Defaults to http://localhost/.

PreserveExecutionContext

Gets or sets a value that controls if ExecutionContext and AsyncLocal<T> values are preserved from the client to the server. The default value is false.

Applies to