Class ContentAuditLogService
public class ContentAuditLogService : IContentAuditLogService
- Inheritance
-
ContentAuditLogService
- Implements
- Inherited Members
- Extension Methods
Constructors
ContentAuditLogService(IServiceScopeFactory, IHttpContextAccessor)
public ContentAuditLogService(IServiceScopeFactory serviceScopeFactory, IHttpContextAccessor httpContextAccessor)
Parameters
serviceScopeFactory
IServiceScopeFactoryhttpContextAccessor
IHttpContextAccessor
Methods
GetAuditLogsAsync(DateTime, DateTime, int, int)
public Task<IPagedList<ContentAuditLog>> GetAuditLogsAsync(DateTime startTime, DateTime endTime, int pageIndex = 0, int pageSize = 10)
Parameters
Returns
GetAuditLogsAsync(Guid)
public Task<IEnumerable<ContentAuditLog>> GetAuditLogsAsync(Guid contentId)
Parameters
contentId
Guid
Returns
LogAuditAsync(Guid, string, string, string?)
public Task LogAuditAsync(Guid contentId, string action, string details, string? operatorId = null)