Commandbase and Async #2558
Answered
by
rockfordlhotka
mikeclimbs23
asked this question in
Questions
-
Within the DataPortal_Execute of command base I would like to call another command object. Is there a way for me to call the other object asynchronously? I'm having trouble getting the syntax correct for the override of protected override void DataPortal_Execute() Thanks, Mike |
Beta Was this translation helpful? Give feedback.
Answered by
rockfordlhotka
Oct 23, 2021
Replies: 1 comment
-
You should be able to do something like this: [Execute]
private async Task Execute()
{
var newCommand = await DataPortal.CreateAsync<SecondCommand>();
await DataPortal.ExecuteAsync(newCommand);
} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
mikeclimbs23
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You should be able to do something like this: