DebugSocketOptions
ConsoleMonster.Headless
Settings for DebugSocket.Start.
Inheritance
- object
- DebugSocketOptions
Usage
Explore 17 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 8
- Extension method DebugSocketOptions.AddRedact
- Extension method DebugSocketOptions.DiscoveryFolder
- Extension method DebugSocketOptions.Port
- Extension method DebugSocketOptions.Token
- Method HeadlessFluent.AddRedact
- Method HeadlessFluent.DiscoveryFolder
- Method HeadlessFluent.Port
- Method HeadlessFluent.Token
Accepted by parameters 9
- Method DebugSocket.Start
- Extension method DebugSocketOptions.AddRedact
- Extension method DebugSocketOptions.DiscoveryFolder
- Extension method DebugSocketOptions.Port
- Extension method DebugSocketOptions.Token
- Method HeadlessFluent.AddRedact
- Method HeadlessFluent.DiscoveryFolder
- Method HeadlessFluent.Port
- Method HeadlessFluent.Token
Constructors
public DebugSocketOptions() #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 DebugSocket.Endpoint or the discovery file).
public string? Token { get; set; } #The token clients must present, at least 16 characters; null generates a random one per start.
public string? DiscoveryFolder { get; set; } #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.
public IList<string> Redact { get; } #Additional regular expressions whose matches are masked on every screen sent (the recording's built-in secret patterns always apply).
Extension 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 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 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);