private void Start(object source, WorkflowRuntimeEventArgs e)
        {
            this.isZombie                   = false;
            this.isAttached                 = false;
            this.eventConduitAttached       = new ManualResetEvent(false);
            this.isServiceContainerStarting = true;
            bool flag = this.programPublisher.Publish(this);

            while ((flag && this.isAttached) && !this.eventConduitAttached.WaitOne(this.attachTimeout, false))
            {
            }
            this.isServiceContainerStarting = false;
        }
 private void Stop(object source, WorkflowRuntimeEventArgs e)
 {
     try
     {
         lock (this.syncRoot)
         {
             this.Detach();
             this.programPublisher.Unpublish();
             this.isZombie = true;
         }
     }
     catch
     {
     }
 }
 private void HandleStarted(object source, WorkflowRuntimeEventArgs e)
 {
     state = WorkflowRuntimeServiceState.Started;
     this.OnStarted();
 }
Example #4
0
 private static void workflowRuntime_Stopped(Object sender, WorkflowRuntimeEventArgs e)
 {
     Trace.WriteLine("Workflow Runtime: Stopped");
 }
Example #5
0
 void runtime_Stopped(object sender, WorkflowRuntimeEventArgs e)
 {
     LogStatus(Guid.Empty, "Stopped");
 }
Example #6
0
        void wfRuntime_Started(object sender, WorkflowRuntimeEventArgs e)
        {
            string v = string.Format("{0}引擎,在{1},发生{2}", wfRuntime.Name, System.DateTime.Now.ToString(), "Started");

            lsWFEvent.Add(v);
        }