Table of Contents

Interface ILogEventRepository

Namespace
Dynamicweb.Logging.LogEvents
Assembly
Dynamicweb.Core.dll

Definition of how a repository for saving logevents works.

public interface ILogEventRepository

Methods

DeleteEvent(int)

Deletes the logevent, if present.

bool DeleteEvent(int id)

Parameters

id int

Identifier of logevent

Returns

bool

wasDeleted

DeleteEvents(LogEventQuery)

Deletes logevents based upon query.

int DeleteEvents(LogEventQuery query)

Parameters

query LogEventQuery

Query defining which logevents to delete

Returns

int

deletedLogEvents

GetEvents(LogEventQuery)

Gets logevents based upon query.

IList<LogEvent> GetEvents(LogEventQuery query)

Parameters

query LogEventQuery

Query defining which logevents to fetch

Returns

IList<LogEvent>

logEvents

Priority()

Sets the priority among all implementations of the repositories.

int Priority()

Returns

int

priority

ReadEvent(int)

Reads the event from repository.

LogEvent? ReadEvent(int id)

Parameters

id int

Identifier of logevent

Returns

LogEvent

logEvent

SaveEvent(LogEvent)

Saves the event.

int SaveEvent(LogEvent logEvent)

Parameters

logEvent LogEvent

LogEvent to be saved

Returns

int

logEventId

To top