当使用Windows Workflow Foundation的?Windows、Workflow、Foundation

2023-09-02 01:37:50 作者:擦掉眼泪,你就是女王

有些东西是比较容易通过手(code)实施公正,但有些是通过WF容易。它看起来像WF可以用来创建(几乎)任何一种算法。因此,(理论上),我可以做我的WF所有的逻辑,但它可能是一个坏主意,这样做对所有的项目。

Some things are easier to implement just by hand (code), but some are easier through WF. It looks like WF can be used to create (almost) any kind of algorithm. So (theoretically) I can do all my logic in WF, but it's probably a bad idea to do it for all projects.

在什么情况下是它使用WF一个好主意,当将它使事情更难,然后他们必须?有什么利弊/ WF用手成本与编码?

In what situations is it a good idea to use WF and when will it make things harder then they have to be? What are pros and cons/cost of WF vs. coding by hand?

推荐答案

您可能需要永丰只有在以下任一为真:

You may need WF only if any of the following are true:

您有一个长期运行的进程。 您有一个过程经常变化。 您想要这个过程的可视化模型。

有关详细信息,请参见保罗安德鲁的职位:What使用Windows Workflow Foundation的呢?

For more details, see Paul Andrew's post: What to use Windows Workflow Foundation for?

请不要混淆或涉及WF任何形式的可视化编程。这是错误的,并可能导致非常糟糕的建筑/设计决策。

Please do not confuse or relate WF with visual programming of any kind. It is wrong and can lead to very bad architecture/design decisions.