Skip to content

CoreGlobalOptionsExtensions

Extension methods for registering typed global options on CoreReplApp.

public static class CoreGlobalOptionsExtensions

Registers a typed global options class. Public settable properties are registered as global options and the class itself is populated from parsed values when injected.

public static CoreReplApp UseGlobalOptions<T>(this CoreReplApp app) where T : class, new()
  • T: Options class with a parameterless constructor.

CoreReplApp - The application for fluent chaining.