Core Concepts
Understand the fundamental concepts and architecture behind EasyMessages.
In This Section
- Messages and Message Types - Understand the Message structure and types
- Message Registry and Stores - How messages are stored and retrieved
- Facades - Static facades (Msg.Auth, Msg.Crud, etc.) for easy access
- Formatters and Outputs - Converting messages to different formats
- Interceptors - Intercept and modify messages
- Architecture Overview - High-level system design
Key Concepts
Immutability
All messages are immutable records, ensuring thread-safety and predictable behavior.
Fluent API
Methods can be chained together for clean, readable code:
var msg = Msg.Auth.LoginFailed()
.WithData(new { email })
.Log(logger);
return StatusCode(msg.HttpStatusCode ?? 401, msg.ToJsonObject());
Zero Configuration
EasyMessages works immediately without any setup required.