Interface IEventTypeRegistry
AOT-safe type registry for resolving event types by name without reflection.
public interface IEventTypeRegistry
- Extension Methods
Remarks
Implementations provide compile-time type mappings (e.g., from source generators)
instead of runtime Type.GetType() / Assembly.GetType() calls.
The default implementation wraps the source-generated EventStoreTypeMap
class produced by EventStoreTypeMapGenerator.
Methods
GetTypeName(Type)
Gets the stored type name for an event type.
string? GetTypeName(Type eventType)
Parameters
eventTypeTypeThe event type.
Returns
ResolveType(string)
Resolves an event type from its stored type name.
Type? ResolveType(string eventTypeName)
Parameters
eventTypeNamestringThe event type name as stored in the event store.