Class WebBackendOptions

Namespace
ProtoTest.Web
Assembly
ProtoTest.Web.dll

The backend options bootstrap every factory shares: create the options, apply the code callback, then bind configuration once - started infrastructure overrides it, and the backend's own section (ProtoTest:Web:{backend}) overrides the code callback - and validate the bound result once. A hand-written backend's factory calls this so it resolves options exactly like the shipped ones.

public static class WebBackendOptions
Inheritance
WebBackendOptions
Inherited Members

Methods

Resolve<TOptions>(ProtoExecutionContext, Action<TOptions>?, Action<TOptions>?)

Creates, configures, binds and validates the backend's options for one test.

public static TOptions Resolve<TOptions>(ProtoExecutionContext context, Action<TOptions>? configure = null, Action<TOptions>? validate = null) where TOptions : class, IProtoConfigurableOptions, new()

Parameters

context ProtoExecutionContext
configure Action<TOptions>
validate Action<TOptions>

Returns

TOptions

Type Parameters

TOptions