Class WebPageSourceOptions
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
SourceFolderstringFrameworkWebPageFramework
Fields
ConfigurationSectionName
The configuration section the source settings live under.
public const string ConfigurationSectionName = "ProtoTest:Web:Pages"
Field Value
Properties
Framework
public WebPageFramework Framework { get; init; }
Property Value
SourceFolder
public string? SourceFolder { get; init; }
Property Value
Methods
FromConfiguration(IConfiguration)
Reads the source settings; an unknown framework value means Auto.
public static WebPageSourceOptions FromConfiguration(IConfiguration configuration)
Parameters
configurationIConfiguration