Skip to content
ConsoleMonster
Class

DebugSocketOptionsFluent

ConsoleMonster.Headless

Namespace
ConsoleMonster.Headless
Assembly
ConsoleMonster
Modifiers
static

The fluent methods of DebugSocketOptions, 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
  • DebugSocketOptionsFluent

Methods

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 required
The instance.
value string? required
The value.

Returns

DebugSocketOptions The same instance.

Examples

// C# initializer or property                                                          // C# fluent
new global::ConsoleMonster.Headless.DebugSocketOptions { DiscoveryFolder = value };    debugSocketOptions.DiscoveryFolder(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 required
The instance.
value int required
The value.

Returns

DebugSocketOptions The same instance.

Examples

// C# initializer or property                                               // C# fluent
new global::ConsoleMonster.Headless.DebugSocketOptions { Port = value };    debugSocketOptions.Port(value);
Redact 2 overloads
public static DebugSocketOptions Redact(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 required
The instance.
item string required
The item.

Returns

DebugSocketOptions The same instance.
public static DebugSocketOptions Redact(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 required
The instance.
items System.Collections.Generic.IEnumerable<string> required
The items, in order.

Returns

DebugSocketOptions The same instance.
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 required
The instance.
value string? required
The value.

Returns

DebugSocketOptions The same instance.

Examples

// C# initializer or property                                                // C# fluent
new global::ConsoleMonster.Headless.DebugSocketOptions { Token = value };    debugSocketOptions.Token(value);