Table of Contents

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 int

Identifier of logevent

Returns

bool

wasDeleted

DeleteEvents(LogEventQuery)

Deletes logevents based upon query.

public int DeleteEvents(LogEventQuery query)

Parameters

query LogEventQuery

Query defining which logevents to delete

Returns

int

deletedLogEvents

GetEvents(LogEventQuery)

Gets logevents based upon query.

public 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.

public int Priority()

Returns

int

priority

ReadEvent(int)

Reads the event from repository.

public LogEvent? ReadEvent(int id)

Parameters

id int

Identifier of logevent

Returns

LogEvent

logEvent

SaveEvent(LogEvent)

Persists a LogEvent to the data store.

public int SaveEvent(LogEvent logEvent)

Parameters

logEvent LogEvent

The log event to save. Must not be null.

Returns

int

The identifier of the saved log event. If the event already had an identifier (> 0), the same value is returned after updating; otherwise, the newly generated identifier is returned.

Remarks

To top