How do I softcode a workflow activity in .NET?
I need to write a static method which is performing some kind of parsing on a string with signature like:
string ParseMessage(string messageToParse)
I would like the whole method ParseMessage to be soft-coded, i.e. not precompiled within the main output of the project, which is a common windows forms application. How do I do this using a workflow activity?
I would like to:
- Create an activity defined in a xaml file
- Load the activity into my windows forms application
- Run the activity by pa开发者_StackOverflow中文版ssing the arguments (a variable of string type)
- Get the result in a variable of string type
There is a very interesting tutorial from Channel9, going directly to the point:
http://channel9.msdn.com/Learn/Courses/VS2010/WCFWF/IntroToWF/Exercise-5-Testing-Workflows
精彩评论