docs
Systems
Messaging
EventSystem
Public API Reference

EventFactory

public static partial class EventFactory

Static factory for creating event instances.

public static Event CreateEvent(Domain channel, int verbValue)

Creates a new event with the given target domain and verb identifier.

  • channel: The Domain that should handle this event
  • verbValue: An integer representing the specific command or action within that domain
  • Returns: A new Event instance with an empty Params payload

Event

public class Event : IEvent

A message that carries a domain-routed command with typed parameters.

public Domain TargetDomain

The domain identifier specifying which system should handle this event.

public int Verb

The verb or command code, defined by the target domain's feature contracts.

public Params Params

The event payload. Parameters are stored and retrieved using strongly-typed ParamKey<T> instances via Params.Set() and Params.Get().

public Event(Domain targetDomain, int verb)

Constructs a new event with the given domain and verb, initializing an empty parameter payload.


IEvent

public interface IEvent

Marker interface for all event types. Allows generic handling of events across the system.


IEventReceiver

public interface IEventReceiver

Contract for objects that listen to events.

void OnEvent(Event e)

Called when an event is dispatched to this receiver.

  • e: The Event to process