EventFactory
public static partial class EventFactoryStatic 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: TheDomainthat should handle this eventverbValue: An integer representing the specific command or action within that domain- Returns: A new
Eventinstance with an emptyParamspayload
Event
public class Event : IEventA message that carries a domain-routed command with typed parameters.
public Domain TargetDomainThe domain identifier specifying which system should handle this event.
public int VerbThe verb or command code, defined by the target domain's feature contracts.
public Params ParamsThe 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 IEventMarker interface for all event types. Allows generic handling of events across the system.
IEventReceiver
public interface IEventReceiverContract for objects that listen to events.
void OnEvent(Event e)Called when an event is dispatched to this receiver.
e: TheEventto process