private static void DataAuditAsynch(string userId, string collectionName, string entityId, string entityKeyField, DataAuditType auditType, string contractNumber) { //throw new SystemException("test error in new thread starts"); DataAudit data = GetDataAuditLog(userId, collectionName, entityId, entityKeyField, auditType, contractNumber); AuditDispatcher.WriteAudit(data, string.Format("{0}_{1}", data.Type, data.EntityType)); }
private static void AuditAsynch(IAppDomainRequest request, string sqlUserID, List <string> patientids, string browser, string userIPAddress, string returnTypeName) { //throw new SystemException("test error in new thread starts"); string callingMethod = FindMethodType(returnTypeName); int auditTypeId = GetAuditTypeID(callingMethod); AuditData data = GetAuditLog(auditTypeId, request, sqlUserID, patientids, browser, userIPAddress, callingMethod); AuditDispatcher.WriteAudit(data); }