예제 #1
0
 /// <summary>
 /// 异步保存实体审计数据
 /// </summary>
 /// <param name="operationEntry">操作审计数据</param>
 /// <param name="cancelToken">异步取消标识</param>
 /// <returns></returns>
 public async Task SaveAsync(AuditOperationEntry operationEntry, CancellationToken cancelToken = default(CancellationToken))
 {
     AuditOperation operation = BuildOperation(operationEntry);
     await _operationRepository.InsertAsync(operation);
 }
예제 #2
0
        /// <summary>
        /// 设置保存审计数据
        /// </summary>
        /// <param name="operationEntry">操作审计数据</param>
        public void Save(AuditOperationEntry operationEntry)
        {
            AuditOperation operation = BuildOperation(operationEntry);

            _operationRepository.Insert(operation);
        }