Class GeneralLogRepository
- Namespace
- Dynamicweb.Data
- Assembly
- Dynamicweb.Core.dll
public sealed class GeneralLogRepository : ILogEventRepository
- Inheritance
-
GeneralLogRepository
- Implements
- Inherited Members
Methods
DeleteEvent(int)
Deletes the logevent, if present.
public bool DeleteEvent(int id)
Parameters
id
intIdentifier of logevent
Returns
- bool
wasDeleted
DeleteEvents(LogEventQuery)
Deletes logevents based upon query.
public int DeleteEvents(LogEventQuery query)
Parameters
query
LogEventQueryQuery defining which logevents to delete
Returns
- int
deletedLogEvents
GetEvents(LogEventQuery)
Gets logevents based upon query.
public IList<LogEvent> GetEvents(LogEventQuery query)
Parameters
query
LogEventQueryQuery defining which logevents to fetch
Returns
Priority()
Sets the priority among all implementations of the repositories.
public int Priority()
Returns
- int
priority
ReadEvent(int)
Reads the event from repository.
public LogEvent? ReadEvent(int id)
Parameters
id
intIdentifier of logevent
Returns
- LogEvent
logEvent
SaveEvent(LogEvent)
Saves the event.
public int SaveEvent(LogEvent logEvent)
Parameters
logEvent
LogEventLogEvent to be saved
Returns
- int
logEventId