Calling Host Method from Workflow -


i want call method resides on host executable using execute workflow workflowinvoker.invoke.

i have found examples of via interface using [externaldataexchange], of these examples workflow 3.5, nothing 4 or 4.5. appears externaldataexchange has been deprecated on 4+.

does have example of doing in wf 4.5?

your host needs register extensions doing like:

yourwfapp.extensions.add<isomeinterface>(     () => { return anobjectthatimplmentsisomeinterface;}); 

then, activities can use extension doing:

isomeinterface hostinterface = activitycontext.getextension<isomeinterface>(); hostinterface.callthehost(); 

Comments

Popular posts from this blog

php - Auto increment employee ID -

php - isset function not working properly -

python - Evaluating the next line in a For Loop while in the current iteration -