internal static bool IsInServiceThread(Guid instanceId) { System.Diagnostics.Debug.Assert(instanceId != Guid.Empty, "IsInServiceThread expects valid guid."); if (WorkflowInstanceId == instanceId) { return(true); } return(DebuggerThreadMarker.IsInDebuggerThread()); }
internal static bool IsInServiceThread(Guid instanceId) { return((WorkflowInstanceId == instanceId) || DebuggerThreadMarker.IsInDebuggerThread()); }