1

Resolved

Add MemoryTrackingParticipant Events

description

Test code can use events to respond to things happening in the workflow
Example
host.Tracking.WorkflowIdle += (sender, wir) => { if (nextIdleCompletes) { testComplete.Set(); } };
 
other events
MemoryTrackingParticipant.WorkflowAborted
MemoryTrackingParticipant.WorkflowInstanceEvent
May possibly add more in the future.

comments

ronjacobs wrote Dec 6, 2011 at 7:41 PM

Example - Test code wants to set an event when idle after a bool value was previously set by another handler
  host.Tracking.WhenIdle(
                    (wir) =>
                        {
                            if (nextIdleCompletes)
                            {
                                testComplete.Set();
                            }
                        });

wrote Dec 9, 2011 at 2:46 PM

ronjacobs wrote Dec 9, 2011 at 2:47 PM

Decided to go with event instead of WhenIdle

wrote Dec 9, 2011 at 2:49 PM

wrote Dec 9, 2011 at 2:56 PM

wrote Jun 18, 2012 at 9:59 PM

wrote Oct 31, 2012 at 5:58 PM

wrote Feb 22, 2013 at 12:08 AM

wrote May 16, 2013 at 11:27 AM

wrote May 16, 2013 at 11:27 AM

wrote Jun 14, 2013 at 7:29 AM