Dependecy Injection IHttpContextAccessor #1027
-
Hello, I'm using workflow-core in an asp.net core (mvc) project. Heres a sample code: public class FindCreator : StepBodyAsync
} Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I'm also running into this problem. Could it be that the workflows operate on a thread that can't access the httpcontext? @MarioEME , have you found a solution in the months since you posted? |
Beta Was this translation helpful? Give feedback.
-
The workflow does not execute within the scope of the original call... it could be months later or even on a different machine.... you will need to capture the info you need before you create the workflow and attached it to the workflow data. |
Beta Was this translation helpful? Give feedback.
The workflow does not execute within the scope of the original call... it could be months later or even on a different machine.... you will need to capture the info you need before you create the workflow and attached it to the workflow data.