How to read the Web.Config file in a Custom Activity Designer in a WF4 Workflow Service

Posted by Preet Sangha on Stack Overflow See other posts from Stack Overflow or by Preet Sangha
Published on 2010-05-11T01:43:47Z Indexed on 2010/05/11 4:14 UTC
Read the original article Hit count: 367

I have a WF service with a custom activity and a custom designer (WPF). I want to add a validation that will check for the presence of some value in the web.config file.

At runtime I can overload void CacheMetadata(ActivityMetadata metadata) and thus I can do the validation happily there using System.Configuration.ConfigurationManager to read the config file.

Since I also want to do this at design time, I was looking for a way to do this in the designer.

© Stack Overflow or respective owner

Related posts about wf4

Related posts about custom