PreparedReplStartup
Prepared input and its configuration, reusable without replaying preparation hooks.
- Kind:
Class - Namespace: Repl
- Assembly:
Repl.Core - Source: src/Repl.Core/Startup/PreparedReplStartup.cs
Signature
Section titled “Signature”public sealed class PreparedReplStartupInheritance
Section titled “Inheritance”Methods
Section titled “Methods”CompleteAsync(CancellationToken)
Section titled “CompleteAsync(CancellationToken)”Renders a terminal preparation result without constructing application services.
public ValueTask<int> CompleteAsync(CancellationToken cancellationToken = default)Parameters
Section titled “Parameters”cancellationToken(CancellationToken): Caller cancellation.
Returns
Section titled “Returns”ValueTask<int> - The process exit code under the preparation configuration.
GetOptions<T>()
Section titled “GetOptions<T>()”Creates a registered options object using prepared values.
public T GetOptions<T>() where T : classType Parameters
Section titled “Type Parameters”T: Options type.
Returns
Section titled “Returns”T - A fresh options object.
Properties
Section titled “Properties”Arguments
Section titled “Arguments”Gets effective arguments.
public IReadOnlyList<string> Arguments { get; }Returns
Section titled “Returns”IReadOnlyList<string>
CanContinue
Section titled “CanContinue”Gets whether composition and normal startup may continue.
public bool CanContinue { get; }Returns
Section titled “Returns”Context
Section titled “Context”Gets the preparation snapshot.
public ReplStartupContext Context { get; }Returns
Section titled “Returns”Exception
Section titled “Exception”Gets a preparation callback failure, if one occurred.
public Exception? Exception { get; }Returns
Section titled “Returns”OriginalArguments
Section titled “OriginalArguments”Gets original arguments.
public IReadOnlyList<string> OriginalArguments { get; }Returns
Section titled “Returns”IReadOnlyList<string>
RemainingArguments
Section titled “RemainingArguments”Gets arguments not consumed by global parsing.
public IReadOnlyList<string> RemainingArguments { get; }Returns
Section titled “Returns”IReadOnlyList<string>
Validation
Section titled “Validation”Gets preparation diagnostics without rendering them.
public InputValidationResult Validation { get; }