Interrupting an EnumerateResourcesActivity
Is it possible to stop the execution of an EnumerateResourcesActivity if I don't need the enumeration to proceed further?
If so, how?
Thanks,
PaoloPaolo Tedesco - http://cern.ch/idm
March 29th, 2010 7:49pm
Hi Paolo!
Unfortunately I don't have a working dev-environment to test this but I believe the simplest way is to call ActivityExecutionContext.CancelActivity but in order to get the ActivityExecutionContext you probably have to override the Execute method on your custom parent activity.
//HenrikHenrik Nilsson
Blog: http://www.idmcrisis.com
Company: Cortego (http://www.cortego.se)
Free Windows Admin Tool Kit Click here and download it now
March 29th, 2010 9:29pm
Hi Henrik,
thank you very much, i've been rather busy recently but I'll try that as soon as possible.
Cheers,
PaoloPaolo Tedesco - http://cern.ch/idm
April 6th, 2010 7:29pm