示例#1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="auditInfo"></param>
 protected AuditInfoWapper(AuditInfo auditInfo) => _auditInfo = auditInfo;
示例#2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="auditInfo"></param>
 /// <returns></returns>
 public Task SaveAsync(AuditInfo auditInfo)
 {
     Logger.LogInformation(auditInfo.ToString());
     return(Task.FromResult(0));
 }
示例#3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="serviceProvider"></param>
 /// <param name="auditInfo"></param>
 public AuditContributionContext(IServiceProvider serviceProvider, AuditInfo auditInfo)
 {
     ServiceProvider = serviceProvider;
     AuditInfo       = auditInfo;
 }
示例#4
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="auditingStore"></param>
 /// <param name="auditInfo"></param>
 public static void Save(this IAuditingStore auditingStore, AuditInfo auditInfo)
 {
     AsyncHelper.RunSync(() => auditingStore.SaveAsync(auditInfo));
 }