How can a WF4 Custom Activity determine that its in design mode v. executing mode

Posted by Preet Sangha on Stack Overflow See other posts from Stack Overflow or by Preet Sangha
Published on 2010-05-11T22:14:40Z Indexed on 2010/05/11 22:24 UTC
Read the original article Hit count: 390

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?

© Stack Overflow or respective owner

Related posts about custom-activity

Related posts about design