Table of Contents

Class ContentAuditLogService

Namespace
Biwen.QuickApi.Contents.Services
Assembly
Biwen.QuickApi.Contents.dll
public class ContentAuditLogService : IContentAuditLogService
Inheritance
ContentAuditLogService
Implements
Inherited Members
Extension Methods

Constructors

ContentAuditLogService(IServiceScopeFactory, IHttpContextAccessor)

public ContentAuditLogService(IServiceScopeFactory serviceScopeFactory, IHttpContextAccessor httpContextAccessor)

Parameters

serviceScopeFactory IServiceScopeFactory
httpContextAccessor IHttpContextAccessor

Methods

GetAuditLogsAsync(DateTime, DateTime, int, int)

public Task<IPagedList<ContentAuditLog>> GetAuditLogsAsync(DateTime startTime, DateTime endTime, int pageIndex = 0, int pageSize = 10)

Parameters

startTime DateTime
endTime DateTime
pageIndex int
pageSize int

Returns

Task<IPagedList<ContentAuditLog>>

GetAuditLogsAsync(Guid)

public Task<IEnumerable<ContentAuditLog>> GetAuditLogsAsync(Guid contentId)

Parameters

contentId Guid

Returns

Task<IEnumerable<ContentAuditLog>>

LogAuditAsync(Guid, string, string, string?)

public Task LogAuditAsync(Guid contentId, string action, string details, string? operatorId = null)

Parameters

contentId Guid
action string
details string
operatorId string

Returns

Task