Core Concepts

Understand the fundamental concepts and architecture behind EasyMessages.


In This Section


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.


Table of contents