ReplAppProfileExtensions
Provides default profile extension methods for common hosting scenarios.
- Kind:
Class - Namespace: Repl
- Assembly:
Repl.Defaults - Source: src/Repl.Defaults/ReplAppProfileExtensions.cs
Signature
Section titled “Signature”public static class ReplAppProfileExtensionsInheritance
Section titled “Inheritance”Methods
Section titled “Methods”UseCliProfile(ReplApp)
Section titled “UseCliProfile(ReplApp)”Applies process-owning defaults suited for CLI one-shot execution. This profile takes process signal ownership for standalone runs — see Automatic for exactly what that means. Set ProcessSignalHandling to None to keep that ownership with the caller for one run.
public static ReplApp UseCliProfile(this ReplApp app)Parameters
Section titled “Parameters”app(ReplApp): Target app.
Returns
Section titled “Returns”ReplApp - The same app instance.
UseDefaultInteractive(ReplApp)
Section titled “UseDefaultInteractive(ReplApp)”Applies interactive defaults for console usage. This profile also takes process signal ownership for standalone runs — see Automatic for exactly what that means, including why an interactive session’s own Ctrl+C behavior is unchanged. Set ProcessSignalHandling to None to keep that ownership with the caller for one run.
public static ReplApp UseDefaultInteractive(this ReplApp app)Parameters
Section titled “Parameters”app(ReplApp): Target app.
Returns
Section titled “Returns”ReplApp - The same app instance.
UseEmbeddedConsoleProfile(ReplApp)
Section titled “UseEmbeddedConsoleProfile(ReplApp)”Applies defaults suited for embedded host scenarios, leaving process signal ownership with the caller.
public static ReplApp UseEmbeddedConsoleProfile(this ReplApp app)Parameters
Section titled “Parameters”app(ReplApp): Target app.
Returns
Section titled “Returns”ReplApp - The same app instance.