How to skip based on data? #565
-
Hi there, ` .Map<LOG, MyLog>((_pipe, entity) =>
Thank you! |
Beta Was this translation helpful? Give feedback.
Answered by
thepirat000
Jan 1, 2023
Replies: 2 comments
-
You can return a boolean .AuditEntityAction<MyLog>((evt, entry, auditEntity) =>
{
if (condition) return false;
return true;
})) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
avialonn
-
Works! Thanks @thepirat000. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can return a boolean
false
from yourAuditEntityAction
to indicate you don't want to save the audit: