Table of Contents

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

fallbackRepository ILogEventRepository

LogEventService(IEnumerable<ILogEventRepository>)

Creates a service that uses the highest-priority repository among those supplied by dependency injection.

public LogEventService(IEnumerable<ILogEventRepository> repositories)

Parameters

repositories IEnumerable<ILogEventRepository>

The registered log event repositories.

Methods

GetEvent(int)

public LogEvent? GetEvent(int id)

Parameters

id int

Returns

LogEvent

GetEvents(LogEventQuery)

public IEnumerable<LogEvent> GetEvents(LogEventQuery query)

Parameters

query LogEventQuery

Returns

IEnumerable<LogEvent>

GetPagedEvents(LogEventQuery)

Gets a single page of logevents together with the total number of matching events (ignoring paging).

public LogEventPage GetPagedEvents(LogEventQuery query)

Parameters

query LogEventQuery

Query 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

logEvent LogEvent
To top