WorkflowRuntime workflowRuntime = new WorkflowRuntime( );
WorkflowInstance instance = workflowRuntime.CreateWorkflow(typeof(monNameSpace. Workflow1)) ;
instance.Start( ) ;
using( WorkFlowRuntime workflowRuntime = new WorkflowRuntime( ) ) { // (...) }
WorkFlowRuntime workflowRuntime = new WorkflowRuntime( ) using( workflowRuntime ) { // (…) }
AutoResetEvent waitHandle = new AutoResetEvent(false) ;
workflowRuntime.WorkflowCompleted += delegate( objet sender, WorkflowCompletedEvent Args e) {waitHandle.Set( ) ;} ;
Created with colorer-take5 library. Type 'csharp' workflowRuntime.WorkflowTerminated += delegate(objet sender, WorkflowTerminatedEventArgs e) { Console.Writeline(e.Exception.Message); waitHandle.Set() ; };
public sealed partial class Workflow1 : SequentialWorkflowActivity
Private void maProc_ExecuteCode( object sender, EventArgs e){ /*(...)*/ }
System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>