Exemple #1
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="debugger">PSWorkflowDebugger</param>
 internal PSWorkflowTrackingParticipant(PSWorkflowDebugger debugger)
 {
     _debugger = debugger;
     Tracer.WriteMessage(String.Format(CultureInfo.InvariantCulture, "{0} Created", participantName));
 }
Exemple #2
0
        private void InitializePSWorkflowApplicationInstance(PSWorkflowRuntime runtime)
        {
            if (runtime == null)
                throw new ArgumentNullException("runtime");

            this.PersistAfterNextPSActivity = false;
            this.suspendAtNextCheckpoint = false;
            Runtime = runtime;

            this.asyncExecutionCollection = new Dictionary<string, PSActivityContext>();
            this.ForceDisableStartOrEndPersistence = false;

            if (Runtime.Configuration.PSWorkflowApplicationPersistUnloadTimeoutSec > 0)
            {
                PersistUnloadTimer = new Timer(Convert.ToDouble(Runtime.Configuration.PSWorkflowApplicationPersistUnloadTimeoutSec * 1000));
                PersistUnloadTimer.Elapsed += new ElapsedEventHandler(PersistUnloadTimer_Elapsed);
                PersistUnloadTimer.AutoReset = false;
            }

            this._debugger = new PSWorkflowDebugger(this);
        }
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="debugger">PSWorkflowDebugger</param>
 internal PSWorkflowTrackingParticipant(PSWorkflowDebugger debugger)
 {
     _debugger = debugger;
     Tracer.WriteMessage(String.Format(CultureInfo.InvariantCulture, "{0} Created", participantName));
 }