HeadlessFluent
ConsoleMonster.Headless
The fluent methods of BrowserHostOptions, generated from its public properties: A property-named method sets a property and Add... adds to a collection, both returning the same instance.
Inheritance
- object
- HeadlessFluent
Methods
public static DebugSocketOptions AddRedact(DebugSocketOptions debugSocketOptions, string item) #Adds an item to DebugSocketOptions.Redact: Additional regular expressions whose matches are masked on every screen sent (the recording's built-in secret patterns always apply).
Parameters
- debugSocketOptions ConsoleMonster.Headless.DebugSocketOptions
- The instance.
- item string
- The item.
public static DebugSocketOptions AddRedact(DebugSocketOptions debugSocketOptions, params string[] items) #Adds items to DebugSocketOptions.Redact: Additional regular expressions whose matches are masked on every screen sent (the recording's built-in secret patterns always apply).
Parameters
- debugSocketOptions ConsoleMonster.Headless.DebugSocketOptions
- The instance.
- items string[]
- The items, in order.
public static DebugSocketOptions AddRedact(DebugSocketOptions debugSocketOptions, IEnumerable<string> items) #Adds items to DebugSocketOptions.Redact: Additional regular expressions whose matches are masked on every screen sent (the recording's built-in secret patterns always apply).
Parameters
- debugSocketOptions ConsoleMonster.Headless.DebugSocketOptions
- The instance.
- items System.Collections.Generic.IEnumerable<string>
- The items, in order.
public static DebugSocketOptions DiscoveryFolder(DebugSocketOptions debugSocketOptions, string? value) #Sets DebugSocketOptions.DiscoveryFolder: The folder for the discovery file (<process id>.json with the port and token), or null for %LOCALAPPDATA%\ConsoleMonster\Debug (the user's local application data elsewhere). The file is removed when the socket stops.
Parameters
- debugSocketOptions ConsoleMonster.Headless.DebugSocketOptions
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Headless.DebugSocketOptions { DiscoveryFolder = value }; debugSocketOptions.DiscoveryFolder(value);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 DebugSocketOptions Port(DebugSocketOptions debugSocketOptions, int value) #Sets DebugSocketOptions.Port: The port on 127.0.0.1 (default 0: the system picks a free one; read it from DebugSocket.Endpoint or the discovery file).
Parameters
- debugSocketOptions ConsoleMonster.Headless.DebugSocketOptions
- The instance.
- value int
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Headless.DebugSocketOptions { Port = value }; debugSocketOptions.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);public static DebugSocketOptions Token(DebugSocketOptions debugSocketOptions, string? value) #Sets DebugSocketOptions.Token: The token clients must present, at least 16 characters; null generates a random one per start.
Parameters
- debugSocketOptions ConsoleMonster.Headless.DebugSocketOptions
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Headless.DebugSocketOptions { Token = value }; debugSocketOptions.Token(value);