Skip to content
ConsoleMonster
Class

BrowserHostOptions

ConsoleMonster.Headless

Namespace
ConsoleMonster.Headless
Assembly
ConsoleMonster
Modifiers
sealed

Settings for BrowserHost.Start.

Inheritance

  • object
  • BrowserHostOptions

Usage

Explore 9 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by 4

Accepted by parameters 5

Constructors

public BrowserHostOptions() #

Properties

public int Port { get; set; } #

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

public string Title { get; set; } #

The page title (default ConsoleMonster).

Extension 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);