Class
BrowserHostOptions
ConsoleMonster.Headless
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
- Extension method BrowserHostOptions.Port
- Extension method BrowserHostOptions.Title
- Method HeadlessFluent.Port
- Method HeadlessFluent.Title
Accepted by parameters 5
- Method BrowserHost.Start
- Extension method BrowserHostOptions.Port
- Extension method BrowserHostOptions.Title
- Method HeadlessFluent.Port
- Method HeadlessFluent.Title
Constructors
public BrowserHostOptions() #Inherited Methods
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).
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
- The instance.
- value int
- The value.
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
- The instance.
- value string
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Headless.BrowserHostOptions { Title = value }; browserHostOptions.Title(value);