EpisodeEndedWith

May 9, 2012 at 9:31 PM
Edited May 9, 2012 at 9:57 PM

I'm either doing something wrong or there's a bug in there.

I'm using RunEpisode() and ResumeEpisodeBookmark() to test my WF and then I'm checking host.Results.EpisodeResult
However, the result is always Unknown if I check it using the debugger, or Aborted if I print it to the Console!!!
Looking at the enum, Aborted = 0 but Unknown is the first value on the enum so it also gets value 0?

How can I fix this issue?

Thanks

May 9, 2012 at 10:12 PM
Edited May 9, 2012 at 10:15 PM

Also, I've managed to make TraceTrackingParticipant to throw me a FormatException, somehow here's all the stack IntelliTrace would give me, let me know if I can help further:

mscorlib.dll!System.Text.StringBuilder.AppendFormat(string format = {unknown}, object[] args = {unknown})
mscorlib.dll!System.Text.StringBuilder.AppendFormat(System.IFormatProvider provider = {unknown}, string format = {unknown}, object[] args = {unknown})
Microsoft.Activities.Extensions.dll!Microsoft.Activities.Extensions.Tracking.TrackingHelper.TraceDictionary(System.Text.StringBuilder stringBuilder = {unknown}, System.Collections.Generic.IDictionary dictionary = {unknown}, string name = {unknown}, bool indent = {unknown})
Microsoft.Activities.Extensions.dll!Microsoft.Activities.Extensions.Tracking.TrackingHelper.TraceInstance(System.Text.StringBuilder stringBuilder = {unknown}, Microsoft.Activities.Extensions.Tracking.TrackingOptions options = {unknown}, System.Guid instanceId = {unknown}, System.Collections.Generic.IDictionary<string,string> annotations = {unknown}, System.Collections.Generic.IDictionary<string,object> arguments = {unknown}, System.Collections.Generic.IDictionary<string,object> variables = {unknown}, System.Collections.Generic.IDictionary<string,object> data = {unknown}, System.DateTime eventTime = {unknown}, System.Action traceCallback = {unknown})
Microsoft.Activities.Extensions.dll!Microsoft.Activities.Extensions.Tracking.ActivityStateRecordExtensions.Trace(System.Activities.Tracking.ActivityStateRecord record = {unknown}, Microsoft.Activities.Extensions.Tracking.TrackingOptions options = {unknown}, System.Diagnostics.TraceSource source = {unknown})
Microsoft.Activities.Extensions.dll!Microsoft.Activities.Extensions.Tracking.TrackingRecordExtensions.Trace(System.Activities.Tracking.TrackingRecord record = {unknown}, Microsoft.Activities.Extensions.Tracking.TrackingOptions options = {unknown}, System.Diagnostics.TraceSource source = {unknown})
Microsoft.Activities.Extensions.dll!Microsoft.Activities.Extensions.Diagnostics.TraceTrackingParticipant.Track(System.Activities.Tracking.TrackingRecord record = {unknown}, System.TimeSpan timeout = {unknown})
System.Activities.dll!TrackAsyncResult.TrackCore()
System.Activities.dll!TrackAsyncResult.ExecuteTrack(object state = {unknown})
System.ServiceModel.Internals.dll!ScheduledOverlapped.IOCallback(uint errorCode = {unknown}, uint numBytes = {unknown}, System.Threading.NativeOverlapped* nativeOverlapped = {unknown})
System.ServiceModel.Internals.dll!IOCompletionThunk.UnhandledExceptionFrame(uint error = {unknown}, uint bytesRead = {unknown}, System.Threading.NativeOverlapped* nativeOverlapped = {unknown})
mscorlib.dll!System.Threading._IOCompletionCallback.PerformIOCompletionCallback(uint errorCode = {unknown}, uint numBytes = {unknown}, System.Threading.NativeOverlapped* pOVERLAP = {unknown})