ConsoleForge 0.3.0
Elm-architecture TUI framework for .NET 8
Loading...
Searching...
No Matches
ConsoleForge.Core.DispatchUpdateAttribute Class Referencesealed

Instructs the ConsoleForge source generator to produce the Update(IMsg) dispatch method for this partial record or class. More...

Detailed Description

Instructs the ConsoleForge source generator to produce the Update(IMsg) dispatch method for this partial record or class.

The generator scans for methods matching the pattern (IModel Model, ICmd? Cmd) On{MsgType}(...) and emits a switch that routes each message type to its handler. The type must be declared partial.


The documentation for this class was generated from the following file:
  • src/ConsoleForge/Core/Attributes.cs