Repository navigation
Release v22.44.0
Browse your application's event model from inside the running application. Screenplay documents are generated and embedded during the build, and an event-model explorer shows them as an interactive board.
Added
Cratis.Arc.Screenplay.Embeddedpackage: generates Screenplay documents from your application during the build, organizes them into assembly, module and feature documents, and embeds them in the assembly. Source generators run first, so generated commands and queries are included, and Screenplay diagnostics are reported in the build with their severity. (#2942)- Event-model explorer at
/.cratis/event-model: a hierarchy of the embedded documents, the event-model board with zoom controls and a View menu (detail level, properties, arrows or lines) whose choices are remembered in the browser, and the source of each document, read-only in Monaco with Screenplay syntax highlighting. Map it withapp.MapCratisEventModel(), optionally requiring authorization. See Embedded event-model explorer. - The
Cratispackage now includes the explorer: Debug builds embed the documents andUseCratis()serves the explorer when the application is a debug build. Release builds do neither unless enabled. Configure it, require authorization or turn it off withAddCratisEventModelViewer(...).
Changed
- Screenplay generation keeps members named after Screenplay keywords, such as
Description,ConcurrencyorTag, writing them as@nameinstead of dropping them;SP0032is now reported as information.