开发者

How do I softcode a workflow activity in .NET?

开发者 https://www.devze.com 2023-02-08 18:56 出处:网络
I need to write a static method which is performing some kind of parsing on a string with signature like:

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:

  1. Create an activity defined in a xaml file
  2. Load the activity into my windows forms application
  3. Run the activity by pa开发者_StackOverflow中文版ssing the arguments (a variable of string type)
  4. 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

0

精彩评论

暂无评论...
验证码 换一张
取 消