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