Table of Contents

Class LoginLogService

Namespace
Dynamicweb.Security.UserManagement
Assembly
Dynamicweb.Core.dll

Records and reads authentication events in the login audit log. Writes are best-effort: a logging failure never propagates to the caller.

public class LoginLogService
Inheritance
LoginLogService
Inherited Members

Methods

DeleteOlderThan(DateTime)

Deletes login log entries older than the given threshold.

public virtual void DeleteOlderThan(DateTime threshold)

Parameters

threshold DateTime

Entries with a timestamp strictly before this are deleted.

GetEntries(LoginLogFilter)

Reads login log entries matching the given filter, most recent first.

public virtual IEnumerable<LoginLogEntry> GetEntries(LoginLogFilter filter)

Parameters

filter LoginLogFilter

The filter to apply.

Returns

IEnumerable<LoginLogEntry>

GetEntryCount(LoginLogFilter)

Gets the total number of login log entries matching the given filter, ignoring paging.

public virtual int GetEntryCount(LoginLogFilter filter)

Parameters

filter LoginLogFilter

The filter to apply.

Returns

int

Log(LoginLogEntry)

Records an authentication event. Does nothing if login logging is disabled, and never throws — failures are swallowed and logged to the system log.

public virtual void Log(LoginLogEntry entry)

Parameters

entry LoginLogEntry

The event to record.

To top