Class WebPageSourceOptions

Namespace
ProtoTest.Web
Assembly
ProtoTest.Web.dll

Where the page inventory comes from: the frontend source folder and the framework to scan it as. Its settings live under ProtoTest:Web:Pages, whose other keys hold the explicit inventory entries, so it reads its two keys directly instead of binding the whole section.

public sealed record WebPageSourceOptions : IEquatable<WebPageSourceOptions>
Inheritance
WebPageSourceOptions
Implements
Inherited Members
Extension Methods

Constructors

WebPageSourceOptions(string?, WebPageFramework)

Where the page inventory comes from: the frontend source folder and the framework to scan it as. Its settings live under ProtoTest:Web:Pages, whose other keys hold the explicit inventory entries, so it reads its two keys directly instead of binding the whole section.

public WebPageSourceOptions(string? SourceFolder = null, WebPageFramework Framework = WebPageFramework.Auto)

Parameters

SourceFolder string
Framework WebPageFramework

Fields

ConfigurationSectionName

The configuration section the source settings live under.

public const string ConfigurationSectionName = "ProtoTest:Web:Pages"

Field Value

string

Properties

Framework

public WebPageFramework Framework { get; init; }

Property Value

WebPageFramework

SourceFolder

public string? SourceFolder { get; init; }

Property Value

string

Methods

FromConfiguration(IConfiguration)

Reads the source settings; an unknown framework value means Auto.

public static WebPageSourceOptions FromConfiguration(IConfiguration configuration)

Parameters

configuration IConfiguration

Returns

WebPageSourceOptions