Adapt engine to process asynchronous operations with await #2
Closed
AndreuCodina
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We currently use
.GetAwaiter.GetResult()
instead ofawait
. For example:The idea is to start to accumulate all asynchronous and synchronous operations (validators, conditional executions, transformations, error customizations...) in
RuleStep/RuleValidation
s when the first asynchronous operation is detected, and process them at the end, when the awaited execution is detected. For example:This will require introducing
InstanceAsync
too.Implementation ideas
Validator
andAsyncValidator
and passValidationContext
orTFieldValue
toIsValid()
in execution.RunAsync
is detected.Beta Was this translation helpful? Give feedback.
All reactions