コード例 #1
0
        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;
        }
コード例 #2
0
 private void Stop(object source, WorkflowRuntimeEventArgs e)
 {
     try
     {
         lock (this.syncRoot)
         {
             this.Detach();
             this.programPublisher.Unpublish();
             this.isZombie = true;
         }
     }
     catch
     {
     }
 }
コード例 #3
0
 private void HandleStarted(object source, WorkflowRuntimeEventArgs e)
 {
     state = WorkflowRuntimeServiceState.Started;
     this.OnStarted();
 }
コード例 #4
0
 private static void workflowRuntime_Stopped(Object sender, WorkflowRuntimeEventArgs e)
 {
     Trace.WriteLine("Workflow Runtime: Stopped");
 }
コード例 #5
0
 void runtime_Stopped(object sender, WorkflowRuntimeEventArgs e)
 {
     LogStatus(Guid.Empty, "Stopped");
 }
コード例 #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);
        }