Search Results for

    Show / Hide Table of Contents
    View Source

    Interface IAuditEntryService

    Represents a service for handling audit entries.

    Namespace: Umbraco.Cms.Core.Services
    Assembly: Umbraco.Core.dll
    Syntax
    public interface IAuditEntryService : IService

    Methods

    View Source

    WriteAsync(Guid?, string, string, DateTime, Guid?, string?, string, string)

    Writes an audit entry for an audited event.

    Declaration
    Task<IAuditEntry> WriteAsync(Guid? performingUserKey, string performingDetails, string performingIp, DateTime eventDateUtc, Guid? affectedUserKey, string? affectedDetails, string eventType, string eventDetails)
    Parameters
    Type Name Description
    Guid? performingUserKey

    The key of the user triggering the audited event.

    string performingDetails

    Free-form details about the user triggering the audited event.

    string performingIp

    The IP address or the request triggering the audited event.

    DateTime eventDateUtc

    The date and time of the audited event.

    Guid? affectedUserKey

    The identifier of the user affected by the audited event.

    string affectedDetails

    Free-form details about the entity affected by the audited event.

    string eventType

    The type of the audited event - must contain only alphanumeric chars and hyphens with forward slashes separating categories. The eventType will generally be formatted like: {application}/{entity-type}/{category}/{sub-category} Example: umbraco/user/sign-in/failed

    string eventDetails

    Free-form details about the audited event.

    Returns
    Type Description
    Task<IAuditEntry>

    The created audit entry.

    • Edit this page
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX