CoreReplAppContextExtensions
Provides typed context helpers that preserve the current app interface in fluent chains.
- Kind:
Class - Namespace: Repl
- Assembly:
Repl.Core - Source: src/Repl.Core/CoreReplAppContextExtensions.cs
Signature
Section titled “Signature”public static class CoreReplAppContextExtensionsInheritance
Section titled “Inheritance”Methods
Section titled “Methods”Context<TApp>(TApp, string, Action<TApp>, Delegate?)
Section titled “Context<TApp>(TApp, string, Action<TApp>, Delegate?)”Creates a context segment while preserving the app interface type for nested configuration.
public static TApp Context<TApp>(this TApp app, string segment, Action<TApp> configure, Delegate? validation = null) where TApp : ICoreReplAppType Parameters
Section titled “Type Parameters”TApp: App interface type.
Parameters
Section titled “Parameters”app(TApp): Target app.segment(string): Context segment template.configure(Action<TApp>): Nested configuration callback.validation(Delegate): Optional validator for scope entry.
Returns
Section titled “Returns”TApp - The same app instance.