Skip to content
ConsoleMonster
Class

BrowserHostOptionsFluent

ConsoleMonster.Headless

Namespace
ConsoleMonster.Headless
Assembly
ConsoleMonster
Modifiers
static

The fluent methods of BrowserHostOptions, generated from its public properties: A property-named method sets a property and a singular-named method adds to a collection, both returning the same instance.

Inheritance

  • object
  • BrowserHostOptionsFluent

Methods

public static BrowserHostOptions Port(BrowserHostOptions browserHostOptions, int value) #

Sets BrowserHostOptions.Port: The port on 127.0.0.1 (default 0: the system picks a free one; read it from BrowserHost.Address).

Parameters

browserHostOptions ConsoleMonster.Headless.BrowserHostOptions required
The instance.
value int required
The value.

Returns

BrowserHostOptions The same instance.

Examples

// C# initializer or property                                               // C# fluent
new global::ConsoleMonster.Headless.BrowserHostOptions { Port = value };    browserHostOptions.Port(value);
public static BrowserHostOptions Title(BrowserHostOptions browserHostOptions, string value) #

Sets BrowserHostOptions.Title: The page title (default ConsoleMonster).

Parameters

browserHostOptions ConsoleMonster.Headless.BrowserHostOptions required
The instance.
value string required
The value.

Returns

BrowserHostOptions The same instance.

Examples

// C# initializer or property                                                // C# fluent
new global::ConsoleMonster.Headless.BrowserHostOptions { Title = value };    browserHostOptions.Title(value);