摘要: 外部触发的事件和工作流在出发之后使用调用的函数是两码事。可以这样认为所谓的接口只是提供了一种的对应关系。1)首先是接口提供了能干什么?2)接口的实现类来直接调调用接口中公开的方法,其实这里调用的就是在工作流中invoke中的方法。所以将所谓的接口只是提供了一种的对应的方法。例如下面的代码:Test.csnamespaceHandleExternalEventActivityTest{//Args[Serializable]publicclassArgsTest:ExternalDataEventArgs{publicArgsTest(Guidid):base(id){}}[Serializab 阅读全文
posted @ 2010-06-12 16:38 qiang.xu 阅读(213) 评论(0) 推荐(0) 编辑
摘要: An interface can declare an event. The following example shows how to implement interface events in a class. Basically the rules are the same as when implementing any interface method or property.To implement interface events in a classDeclare the event in your class and then invoke it in the approp 阅读全文
posted @ 2010-06-12 16:26 qiang.xu 阅读(175) 评论(0) 推荐(0) 编辑