How can a WF4 Custom Activity determine that its in design mode v. executing mode
- by Preet Sangha
I have a WF4 custom activity with a custom designer (WPF). I would like to have slightly different behaviour in the CacheMetaData override depending on if the Activity is in Design or Execution mode.
Since the Activity can be debugged, it could in be VS in either case so I cannot check for that.
Is there a service within WF4 I can call to tell what mode I'm in please?