<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>《《WF编程》系列之16 &#8211; 工作流与外部世界:生存周期事件》的评论</title>
	<atom:link href="http://coding.windstyle.cn/2007/04/28/programming-wf-16-external-world-of-workflow-life-cycle-event/feed/" rel="self" type="application/rss+xml" />
	<link>http://coding.windstyle.cn/2007/04/28/programming-wf-16-external-world-of-workflow-life-cycle-event/</link>
	<description>Windie Chai&#039;s technique blog</description>
	<lastBuildDate>Sat, 31 Dec 2011 16:03:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>作者：斯林波</title>
		<link>http://coding.windstyle.cn/2007/04/28/programming-wf-16-external-world-of-workflow-life-cycle-event/#comment-260</link>
		<dc:creator>斯林波</dc:creator>
		<pubDate>Fri, 09 Jul 2010 08:46:46 +0000</pubDate>
		<guid isPermaLink="false">http://731266#comment-260</guid>
		<description>//工作流恢复
workflowRuntime.WorkflowResumed += delegate(object sender, WorkflowEventArgs e)
{
Console.WriteLine(&quot;Workflow resumed&quot;);
waitHandle.Set(); //此处的waitHandle.Set();
};

//处加上了 waitHandle.Set();
会使主程序提前执行,导致工作流没能按计划完成!</description>
		<content:encoded><![CDATA[<p>//工作流恢复<br />
workflowRuntime.WorkflowResumed += delegate(object sender, WorkflowEventArgs e)<br />
{<br />
Console.WriteLine(“Workflow resumed”);<br />
waitHandle.Set(); //此处的waitHandle.Set();<br />
};</p>
<p>//处加上了 waitHandle.Set();<br />
会使主程序提前执行,导致工作流没能按计划完成!</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：cc</title>
		<link>http://coding.windstyle.cn/2007/04/28/programming-wf-16-external-world-of-workflow-life-cycle-event/#comment-259</link>
		<dc:creator>cc</dc:creator>
		<pubDate>Fri, 12 Mar 2010 02:13:39 +0000</pubDate>
		<guid isPermaLink="false">http://731266#comment-259</guid>
		<description>不是的，由于没有执行waitHandle.set(),在工作流结束后，控制台将无法被唤醒（之前执行waitHandle.WaitOne()将控制台挂起缺没把他唤醒）</description>
		<content:encoded><![CDATA[<p>不是的，由于没有执行waitHandle.set(),在工作流结束后，控制台将无法被唤醒（之前执行waitHandle.WaitOne()将控制台挂起缺没把他唤醒）</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：『听风且吟』技术版 &#187; Blog Archive &#187; 《WF编程》笔记目录</title>
		<link>http://coding.windstyle.cn/2007/04/28/programming-wf-16-external-world-of-workflow-life-cycle-event/#comment-258</link>
		<dc:creator>『听风且吟』技术版 &#187; Blog Archive &#187; 《WF编程》笔记目录</dc:creator>
		<pubDate>Fri, 18 Dec 2009 04:00:25 +0000</pubDate>
		<guid isPermaLink="false">http://731266#comment-258</guid>
		<description>[...] 《WF编程》系列之16 &#8211; 工作流与外部世界:生存周期事件 [...]</description>
		<content:encoded><![CDATA[<p>[...] 《WF编程》系列之16 &#8211; 工作流与外部世界:生存周期事件 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：︶ㄣ木べ头</title>
		<link>http://coding.windstyle.cn/2007/04/28/programming-wf-16-external-world-of-workflow-life-cycle-event/#comment-257</link>
		<dc:creator>︶ㄣ木べ头</dc:creator>
		<pubDate>Wed, 11 Mar 2009 05:30:00 +0000</pubDate>
		<guid isPermaLink="false">http://731266#comment-257</guid>
		<description>--引用--------------------------------------------------
Windie Chai（笑煞天）: @Mapleleaf

你把最后几行代码改成这样：
instance.Start();
waitHandle.WaitOne();
Console.WriteLine(&quot;finish.&quot;);
Console.Read();

然后对比一下有WaitHandle.Set()和没有WaitHandle.Set()有什么不同。
--------------------------------------------------------

我没有测试，我想结果就会是程序主线程不等工作流的线程自己先执行完了，显示上就会是Finish会在completed的前面显示出来。不知道���不？
</description>
		<content:encoded><![CDATA[<p>&#8211;引用&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
Windie Chai（笑煞天）: @Mapleleaf</p>
<p>你把最后几行代码改成这样：<br />
instance.Start();<br />
waitHandle.WaitOne();<br />
Console.WriteLine(&amp;quot;finish.&amp;quot;);<br />
Console.Read();</p>
<p>然后对比一下有WaitHandle.Set()和没有WaitHandle.Set()有什么不同。<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>我没有测试，我想结果就会是程序主线程不等工作流的线程自己先执行完了，显示上就会是Finish会在completed的前面显示出来。不知道���不？</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：小狼狗</title>
		<link>http://coding.windstyle.cn/2007/04/28/programming-wf-16-external-world-of-workflow-life-cycle-event/#comment-256</link>
		<dc:creator>小狼狗</dc:creator>
		<pubDate>Fri, 20 Feb 2009 08:32:00 +0000</pubDate>
		<guid isPermaLink="false">http://731266#comment-256</guid>
		<description>能再说明白一些吗 ？</description>
		<content:encoded><![CDATA[<p>能再说明白一些吗 ？</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：Windie Chai（笑煞天）</title>
		<link>http://coding.windstyle.cn/2007/04/28/programming-wf-16-external-world-of-workflow-life-cycle-event/#comment-255</link>
		<dc:creator>Windie Chai（笑煞天）</dc:creator>
		<pubDate>Sat, 29 Nov 2008 07:13:00 +0000</pubDate>
		<guid isPermaLink="false">http://731266#comment-255</guid>
		<description>@Mapleleaf

你把最后几行代码改成这样：
instance.Start();
waitHandle.WaitOne();
Console.WriteLine(&quot;finish.&quot;);
Console.Read();

然后对比一下有WaitHandle.Set()和没有WaitHandle.Set()有什么不同。</description>
		<content:encoded><![CDATA[<p>@Mapleleaf</p>
<p>你把最后几行代码改成这样：<br />
instance.Start();<br />
waitHandle.WaitOne();<br />
Console.WriteLine(&quot;finish.&quot;);<br />
Console.Read();</p>
<p>然后对比一下有WaitHandle.Set()和没有WaitHandle.Set()有什么不同。</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：Mapleleaf</title>
		<link>http://coding.windstyle.cn/2007/04/28/programming-wf-16-external-world-of-workflow-life-cycle-event/#comment-254</link>
		<dc:creator>Mapleleaf</dc:creator>
		<pubDate>Fri, 28 Nov 2008 09:35:00 +0000</pubDate>
		<guid isPermaLink="false">http://731266#comment-254</guid>
		<description>请问一下楼主:原文:&quot;代码中有两个事件(Terminated和Completed)需要执行WaitHandle对象的Set方法&quot;

我把Terminated和Completed的.Set()全都删除了 可代码还是可以运行!而且和有.Set()的效果是一样的,是不是Runtime在后台执行有什么具��的变化呢?我的环境是VS2008 sp1
</description>
		<content:encoded><![CDATA[<p>请问一下楼主:原文:&quot;代码中有两个事件(Terminated和Completed)需要执行WaitHandle对象的Set方法&quot;</p>
<p>我把Terminated和Completed的.Set()全都删除了 可代码还是可以运行!而且和有.Set()的效果是一样的,是不是Runtime在后台执行有什么具��的变化呢?我的环境是VS2008 sp1</p>
]]></content:encoded>
	</item>
</channel>
</rss>

