GlobalOptionsExtensions
Registers typed global options with the DI-enabled facade.
- Kind:
Class - Namespace: Repl
- Assembly:
Repl.Defaults - Source: src/Repl.Defaults/GlobalOptionsExtensions.cs
Signature
Section titled “Signature”public static class GlobalOptionsExtensionsInheritance
Section titled “Inheritance”Methods
Section titled “Methods”UseGlobalOptions<T>(ReplApp)
Section titled “UseGlobalOptions<T>(ReplApp)”Declares typed global options and registers their DI factory.
public static ReplApp UseGlobalOptions<T>(this ReplApp app) where T : class, new()Type Parameters
Section titled “Type Parameters”T: Options class with a public parameterless constructor.
Parameters
Section titled “Parameters”app(ReplApp): Application to configure.
Returns
Section titled “Returns”ReplApp - The application.