Class LogEventService
- Namespace
- Dynamicweb.Logging.LogEvents
- Assembly
- Dynamicweb.Core.dll
public class LogEventService
- Inheritance
-
LogEventService
- Inherited Members
Constructors
LogEventService(ILogEventRepository)
public LogEventService(ILogEventRepository fallbackRepository)
Parameters
fallbackRepositoryILogEventRepository
LogEventService(IEnumerable<ILogEventRepository>)
Creates a service that uses the highest-priority repository among those supplied by dependency injection.
public LogEventService(IEnumerable<ILogEventRepository> repositories)
Parameters
repositoriesIEnumerable<ILogEventRepository>The registered log event repositories.
Methods
GetEvent(int)
public LogEvent? GetEvent(int id)
Parameters
idint
Returns
GetEvents(LogEventQuery)
public IEnumerable<LogEvent> GetEvents(LogEventQuery query)
Parameters
queryLogEventQuery
Returns
GetPagedEvents(LogEventQuery)
Gets a single page of logevents together with the total number of matching events (ignoring paging).
public LogEventPage GetPagedEvents(LogEventQuery query)
Parameters
queryLogEventQueryQuery defining which logevents to fetch and how to page them.
Returns
- LogEventPage
The requested page of logevents and the total match count.
SaveEvent(LogEvent)
public void SaveEvent(LogEvent logEvent)
Parameters
logEventLogEvent