malaikuangren

What is the purpose or drive to build thing like (xxx),How can it achieve the original goal of design?
上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 27 下一页

2012年6月16日

WCF Part 1 : Services ABC

摘要: I want to begin with a conceptual explanation about services. A servicealways has at least one endpoint, but can have multiple. A client normally communicates with only one endpoint. A plain-old-webservice only has one endpoint and communicates via HTTP and Text/XML. The picture below shows a servic 阅读全文

posted @ 2012-06-16 19:56 malaikuangren 阅读(322) 评论(0) 推荐(0) 编辑
Beginning Introduce To WCF

摘要: 为了使读者对基于WCF的编程模型有一个直观的映像,我将带领读者一步一步地创建一个完整的WCF应用。本应用功能虽然简单,但它涵盖了一个完整WCF应用的基本结构。对那些对WCF不是很了解的读者来说,这个例子将带领你正式进入WCF的世界。在这个例子中,我们将实现一个简单的计算服务(CalculatorService),提供基本的加、减、乘、除的运算。和传统的分布式通信框架一样,WCF本质上提供一个跨进程、跨机器以致跨网络的服务调用。在本例中,客户端和服务通过运行在相同的同一台机器上不同进程模拟。WCF的服务不能孤立地存在,需要寄宿于一个运行着的进程中,我们把承载WCF服务的进程称为宿主,为服务指定宿 阅读全文

posted @ 2012-06-16 19:28 malaikuangren 阅读(170) 评论(0) 推荐(0) 编辑
Interesting thing with WF4 Activity Scheduling

摘要: firstly i will show you a certain of recursive program. pls see blow.undoubtedly, the program console will got a message like this ,and along with aSystem.StackOverflowException.but let 's see a kind of like this code in WF4 which use scheduling activity.publicclassInfiniteLoop:NativeActivity{pu 阅读全文

posted @ 2012-06-16 16:03 malaikuangren 阅读(405) 评论(0) 推荐(0) 编辑

2012年6月15日

WF4 Beta2 工作原理

摘要: 最顶层的Activity类提供了一个可以供子类重写的InternalExecute()方法:internal virtual voidInternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager); 子类可以重写此方法,在此方法中实现各种功能,这个方法在WF4内部非常重要,许多东西都与它相关。为了方便地供开发者自定义业务处理逻辑,诸如CodeActivity之类最底层的类,另定义了一个抽象的Execute()方法:protected abstrac... 阅读全文

posted @ 2012-06-15 22:21 malaikuangren 阅读(395) 评论(0) 推荐(0) 编辑
WF4 Activity Data Model---Variable

摘要: VariableVariables are modeled by Variable class.namespaceSystem.Activities{publicabstractclassVariable:LocationReference{publicActivityWithResultDefault {get;set; }publicstringName {get;set; }…publicobjectGet(ActivityContextcontext);publicvoidSet(ActivityContextcontext,objectvalue);}}publicsealedcla 阅读全文

posted @ 2012-06-15 19:49 malaikuangren 阅读(628) 评论(0) 推荐(0) 编辑

2012年6月14日

WF4 Activity Data Model---Argument

摘要: To build any meaningful Activity, developers also need to the activity’s state and data flow. In this post, I’m going to talk about WF4’s Activity data model.Red words in this article is coming from my personal opinion. if have some error . pls kindly let my know . thanks a lot .Argument and Variabl 阅读全文

posted @ 2012-06-14 23:30 malaikuangren 阅读(844) 评论(0) 推荐(0) 编辑
Which Class shoulb be derived for Authoring Custom Activity

摘要: 红色字体为个人理解,如有问题,欢迎指正,谢谢!The following table lists the features available in the custom activity base classes.Base activity classFeatures availableActivityComposes groups of system-provided and custom activities into a composite activity.CodeActivityImplements imperative functionality by providing anE 阅读全文

posted @ 2012-06-14 11:52 malaikuangren 阅读(484) 评论(0) 推荐(0) 编辑

2012年6月13日

Pick Activity(Build in Activity Sample)

摘要: ThePickactivity provides event-based control modeling. It behaves similar to the C#switchstatement, which executes only one of the branches in theswitchstatement. Unlike theswitchstatement in which a branch is executed based upon on a value, thePickactivity executes a branch based upon how an activi 阅读全文

posted @ 2012-06-13 21:19 malaikuangren 阅读(328) 评论(0) 推荐(0) 编辑
WorkflowInvoker,WorkflowApplication and WorkflowServiceHost

摘要: Workflow 4.0是个全新的框架,重写了3.0/3.5中的的Runtime和Activity。在Workflow 4.0的Runtime和3.0/3.5中的Runtime的最大区别在于没有了WorkflowRuntime对应的类。在3.0/3.5中,我们需要先初始化WorkflowRuntime,并通过CreateInstance函数来建立工作流实例(WorkflowInstance)。4.0中的WorkflowApplication类和WorkflowInstance类对应,但是不需要通过WorkflowRuntime来实例化,可以通过new来实例化。Creating an insta 阅读全文

posted @ 2012-06-13 01:45 malaikuangren 阅读(453) 评论(0) 推荐(0) 编辑

2012年6月11日

Why we need state machine in Work Flow?

摘要: There is one important decision to make when creating a new workflow. Will the workflow be a sequential workflow, or a state machine workflow? Windows Workflow provides these two types out of the box. To answer the question, we have to decidewhois in control.A sequential workflow is a predictable wo 阅读全文

posted @ 2012-06-11 20:54 malaikuangren 阅读(612) 评论(0) 推荐(0) 编辑
上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 27 下一页