Skip to content

GlobalOptionsExtensions

Registers typed global options with the DI-enabled facade.

public static class GlobalOptionsExtensions

Declares typed global options and registers their DI factory.

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

ReplApp - The application.