CritterStackInstaller
Key: CritterStack
Default Enabled: ✅ (when added via AddCritterStack())
Package: SaveApis.Utils.CritterStack
Purpose
Applies shared JasperFx defaults that are required by both Marten and Wolverine. This installer must run before MartenInstaller and WolverineInstaller and is always registered first by AddCritterStack().
What It Does
Builder phase:
- Calls
builder.Services.CritterStackDefaults(options => { ... })with:ApplicationAssembly=context.SoftwareAssemblyGeneratedCodeOutputPath=Generated/CritterStackGeneratedCodeMode=Dynamic— JasperFx generates and compiles handler code at runtimeResourceAutoCreate=All— all required database tables and objects are created or migrated automatically on startup
Dependencies
No dependencies on other installers. Always registered first in AddCritterStack().
Configuration
This installer has no configuration options. All settings are fixed defaults.
| JasperFx Setting | Value | Description |
|---|---|---|
ApplicationAssembly |
context.SoftwareAssembly |
Used for handler/projection discovery |
GeneratedCodeOutputPath |
Generated/CritterStack |
Output directory for generated code artifacts |
GeneratedCodeMode |
Dynamic |
Code is generated and compiled at runtime |
ResourceAutoCreate |
All |
All DB resources created/migrated on startup |
InstallerContext Extension
Use WithCritterStack() to enable or disable all three CritterStack installers at once:
installer.WithCritterStack(bool enabled = true);
This sets feature flags for CritterStack, Marten, and Wolverine simultaneously.
// Disable the entire CritterStack:
installer.WithCritterStack(false);
Notes
SetSoftwareAssembly()must be called in the configure callback — it is used by this installer to setApplicationAssembly.- The
Generated/CritterStackdirectory is created relative to the working directory. Add it to.gitignoreif you don’t want generated files in source control.
Related
- CritterStack Overview
- MartenInstaller — configures the Marten event store / document database
- WolverineInstaller — configures the Wolverine message bus