<?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编程》系列之19 &#8211; 触发事件与调用方法:服务以及工作流的实现》的评论</title>
	<atom:link href="http://coding.windstyle.cn/2007/07/16/programming-wf-19-raise-events-and-invoke-method-implement-service-and-workflow/feed/" rel="self" type="application/rss+xml" />
	<link>http://coding.windstyle.cn/2007/07/16/programming-wf-19-raise-events-and-invoke-method-implement-service-and-workflow/</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>作者：『听风且吟』技术版 &#187; Blog Archive &#187; 《WF编程》笔记目录</title>
		<link>http://coding.windstyle.cn/2007/07/16/programming-wf-19-raise-events-and-invoke-method-implement-service-and-workflow/#comment-318</link>
		<dc:creator>『听风且吟』技术版 &#187; Blog Archive &#187; 《WF编程》笔记目录</dc:creator>
		<pubDate>Fri, 18 Dec 2009 03:54:59 +0000</pubDate>
		<guid isPermaLink="false">http://819862#comment-318</guid>
		<description>[...] 《WF编程》系列之19 &#8211; 触发事件与调用方法:服务以及工作流的实现 [...]</description>
		<content:encoded><![CDATA[<p>[...] 《WF编程》系列之19 &#8211; 触发事件与调用方法:服务以及工作流的实现 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：『听风且吟』技术版 &#187; Blog Archive &#187; 状态机工作流的并行事件</title>
		<link>http://coding.windstyle.cn/2007/07/16/programming-wf-19-raise-events-and-invoke-method-implement-service-and-workflow/#comment-317</link>
		<dc:creator>『听风且吟』技术版 &#187; Blog Archive &#187; 状态机工作流的并行事件</dc:creator>
		<pubDate>Fri, 18 Dec 2009 03:38:01 +0000</pubDate>
		<guid isPermaLink="false">http://819862#comment-317</guid>
		<description>[...] 关于WF本地通信服务的机制和开发方法，请参见我翻译的《WF编程 &#8211; 触发事件与调用方法》（1、2、3）。 [...]</description>
		<content:encoded><![CDATA[<p>[...] 关于WF本地通信服务的机制和开发方法，请参见我翻译的《WF编程 &#8211; 触发事件与调用方法》（1、2、3）。 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：yangke</title>
		<link>http://coding.windstyle.cn/2007/07/16/programming-wf-19-raise-events-and-invoke-method-implement-service-and-workflow/#comment-316</link>
		<dc:creator>yangke</dc:creator>
		<pubDate>Fri, 23 Jan 2009 02:53:00 +0000</pubDate>
		<guid isPermaLink="false">http://819862#comment-316</guid>
		<description>小弟我刚接触WF，在编译的时候报了错，希望那位仁兄帮我搞定，小弟我将万分感谢！！！！！！！！！！！！！！！！！！！！！！！！！！
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].</description>
		<content:encoded><![CDATA[<p>小弟我刚接触WF，在编译的时候报了错，希望那位仁兄帮我搞定，小弟我将万分感谢！！！！！！！！！！！！！！！！！！！！！！！！！！<br />
WRN: Assembly binding logging is turned OFF.<br />
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.<br />
Note: There is some performance penalty associated with assembly bind failure logging.<br />
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：笑煞天</title>
		<link>http://coding.windstyle.cn/2007/07/16/programming-wf-19-raise-events-and-invoke-method-implement-service-and-workflow/#comment-315</link>
		<dc:creator>笑煞天</dc:creator>
		<pubDate>Tue, 22 Jan 2008 07:56:00 +0000</pubDate>
		<guid isPermaLink="false">http://819862#comment-315</guid>
		<description>@Dominic
Thanks，已修正，看了看项目里自己写的代码就是这样的,Word文档也是这样的，不知道COPY的时候出了什么状况。
���前也有一篇出现了丢失的问题,莫非是早先博客园的code功能会丢失?反正现在没问题.</description>
		<content:encoded><![CDATA[<p>@Dominic<br />
Thanks，已修正，看了看项目里自己写的代码就是这样的,Word文档也是这样的，不知道COPY的时候出了什么状况。<br />
���前也有一篇出现了丢失的问题,莫非是早先博客园的code功能会丢失?反正现在没问题.</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：Dominic</title>
		<link>http://coding.windstyle.cn/2007/07/16/programming-wf-19-raise-events-and-invoke-method-implement-service-and-workflow/#comment-314</link>
		<dc:creator>Dominic</dc:creator>
		<pubDate>Tue, 22 Jan 2008 07:49:00 +0000</pubDate>
		<guid isPermaLink="false">http://819862#comment-314</guid>
		<description>漏了一处
public class BugFlowService : IBugFlowService
    {
        public event EventHandler&lt;BugAddedArgs&gt; BugAdded;

        public void AssignBug(Bug bug)
        {
            Console.WriteLine(&quot;Assign a bug {0} to developer&quot;, bug.Title);
        }

        public void CreateBug(Guid instanceID, Bug bug)
        {
            BugAddedArgs arg = new BugAddedArgs(instanceID, bug);
            EventHandler&lt;BugAddedArgs&gt; ev = this.BugAdded;
            if (ev != null)
            {
                ev(null, arg);
            }
        }
    }</description>
		<content:encoded><![CDATA[<p>漏了一处<br />
public class BugFlowService : IBugFlowService<br />
    {<br />
        public event EventHandler&lt;BugAddedArgs&gt; BugAdded;</p>
<p>        public void AssignBug(Bug bug)<br />
        {<br />
            Console.WriteLine(&quot;Assign a bug {0} to developer&quot;, bug.Title);<br />
        }</p>
<p>        public void CreateBug(Guid instanceID, Bug bug)<br />
        {<br />
            BugAddedArgs arg = new BugAddedArgs(instanceID, bug);<br />
            EventHandler&lt;BugAddedArgs&gt; ev = this.BugAdded;<br />
            if (ev != null)<br />
            {<br />
                ev(null, arg);<br />
            }<br />
        }<br />
    }</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：Dominic</title>
		<link>http://coding.windstyle.cn/2007/07/16/programming-wf-19-raise-events-and-invoke-method-implement-service-and-workflow/#comment-313</link>
		<dc:creator>Dominic</dc:creator>
		<pubDate>Tue, 22 Jan 2008 06:43:00 +0000</pubDate>
		<guid isPermaLink="false">http://819862#comment-313</guid>
		<description>这里的代码有些问题的。
应该是如下：
  [ExternalDataExchange]
    public interface IBugFlowService
    {
        event EventHandler&lt;BugAddedArgs&gt; BugAdded;
        void AssignBug(Bug bug);
    }

 public class BugFlowService : IBugFlowService
    {
        public event EventHandler&lt;BugAddedArgs&gt; BugAdded;

        public void AssignBug(Bug bug)
        {
            Console.WriteLine(&quot;Assign a bug {0} to developer&quot;, bug.Title);
        }

        public void CreateBug(Guid instanceID, Bug bug)
        {
            BugAddedArgs arg = new BugAddedArgs(instanceID, bug);
            EventHandler ev = this.BugAdded;
            if (ev != null)
            {
                ev(null, arg);
            }
        }
    }

</description>
		<content:encoded><![CDATA[<p>这里的代码有些问题的。<br />
应该是如下：<br />
  [ExternalDataExchange]<br />
    public interface IBugFlowService<br />
    {<br />
        event EventHandler&lt;BugAddedArgs&gt; BugAdded;<br />
        void AssignBug(Bug bug);<br />
    }</p>
<p> public class BugFlowService : IBugFlowService<br />
    {<br />
        public event EventHandler&lt;BugAddedArgs&gt; BugAdded;</p>
<p>        public void AssignBug(Bug bug)<br />
        {<br />
            Console.WriteLine(&quot;Assign a bug {0} to developer&quot;, bug.Title);<br />
        }</p>
<p>        public void CreateBug(Guid instanceID, Bug bug)<br />
        {<br />
            BugAddedArgs arg = new BugAddedArgs(instanceID, bug);<br />
            EventHandler ev = this.BugAdded;<br />
            if (ev != null)<br />
            {<br />
                ev(null, arg);<br />
            }<br />
        }<br />
    }</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：Dominic</title>
		<link>http://coding.windstyle.cn/2007/07/16/programming-wf-19-raise-events-and-invoke-method-implement-service-and-workflow/#comment-312</link>
		<dc:creator>Dominic</dc:creator>
		<pubDate>Tue, 22 Jan 2008 06:34:00 +0000</pubDate>
		<guid isPermaLink="false">http://819862#comment-312</guid>
		<description>有问题。 Error : The event BugAdded has to be of type EventHandler where T derives from ExternalDataEventArgs

</description>
		<content:encoded><![CDATA[<p>有问题。 Error : The event BugAdded has to be of type EventHandler where T derives from ExternalDataEventArgs</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：zjysky</title>
		<link>http://coding.windstyle.cn/2007/07/16/programming-wf-19-raise-events-and-invoke-method-implement-service-and-workflow/#comment-311</link>
		<dc:creator>zjysky</dc:creator>
		<pubDate>Thu, 10 Jan 2008 05:58:00 +0000</pubDate>
		<guid isPermaLink="false">http://819862#comment-311</guid>
		<description>给handleExternalEventActivity1设置接口和事件方法的时候设置不上去啊。在弹出的设置面板中输入接口的全类���没有反应</description>
		<content:encoded><![CDATA[<p>给handleExternalEventActivity1设置接口和事件方法的时候设置不上去啊。在弹出的设置面板中输入接口的全类���没有反应</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：tsing</title>
		<link>http://coding.windstyle.cn/2007/07/16/programming-wf-19-raise-events-and-invoke-method-implement-service-and-workflow/#comment-310</link>
		<dc:creator>tsing</dc:creator>
		<pubDate>Wed, 31 Oct 2007 03:11:00 +0000</pubDate>
		<guid isPermaLink="false">http://819862#comment-310</guid>
		<description>ExternalDataEventArgs  原来是System.Workflow.Activities 命名空间的一个类</description>
		<content:encoded><![CDATA[<p>ExternalDataEventArgs  原来是System.Workflow.Activities 命名空间的一个类</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：tsing</title>
		<link>http://coding.windstyle.cn/2007/07/16/programming-wf-19-raise-events-and-invoke-method-implement-service-and-workflow/#comment-309</link>
		<dc:creator>tsing</dc:creator>
		<pubDate>Wed, 31 Oct 2007 02:10:00 +0000</pubDate>
		<guid isPermaLink="false">http://819862#comment-309</guid>
		<description>ExternalDataEventArgs 的类如何实现？

提示错误: Error	: The event BugAdded has to be of type EventHandler where T derives from ExternalDataEventArgs

我确定 BugAddedArgs 继承 ExternalDataEventArgs : EventArgs

</description>
		<content:encoded><![CDATA[<p>ExternalDataEventArgs 的类如何实现？</p>
<p>提示错误: Error	: The event BugAdded has to be of type EventHandler where T derives from ExternalDataEventArgs</p>
<p>我确定 BugAddedArgs 继承 ExternalDataEventArgs : EventArgs</p>
]]></content:encoded>
	</item>
</channel>
</rss>

