IEventManager
Interface for writing and querying system events.
Namespace: ControlBee.Interfaces
Methods
Write
Writes an event to the event log.
void Write(
string actorName,
string name,
DialogSeverity severity = DialogSeverity.Info,
int? code = null,
string? desc = null
);
Parameters:
actorName— The name of the actor that generated the event.name— The event name.severity— The severity level. Default isDialogSeverity.Info.code— An optional event code.desc— An optional description.
GetDatabase
Returns the underlying database instance.
IDatabase GetDatabase();
ReadAll
Reads all records from the specified table.
DataTable ReadAll(string tableName, QueryOptions? options = null);
Events
EventOccured
Raised when an event is written.
event EventHandler<EventMessage>? EventOccured;