This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Executing a Workflow state VAF Await task for an API

Hello,

I would like to execute a request that fetches data from a web service and use in state. this service is an async task.

Parents
  • As a general point most methods within the VAF are expected to execute synchronously.  Attempts to use the async keyword, for example, or to access the vault from other threads will fail.

    You can call async methods but you will need to use the GetAwaiter().GetResult() approach within your VAF code to effectively convert them to be blocking.

Reply
  • As a general point most methods within the VAF are expected to execute synchronously.  Attempts to use the async keyword, for example, or to access the vault from other threads will fail.

    You can call async methods but you will need to use the GetAwaiter().GetResult() approach within your VAF code to effectively convert them to be blocking.

Children