Skip to content

CoreReplAppContextExtensions

Provides typed context helpers that preserve the current app interface in fluent chains.

public static class CoreReplAppContextExtensions

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 : ICoreReplApp
  • TApp: App interface type.
  • app (TApp): Target app.
  • segment (string): Context segment template.
  • configure (Action<TApp>): Nested configuration callback.
  • validation (Delegate): Optional validator for scope entry.

TApp - The same app instance.