コード例 #1
0
        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());
        }
コード例 #2
0
 internal static bool IsInServiceThread(Guid instanceId)
 {
     return((WorkflowInstanceId == instanceId) || DebuggerThreadMarker.IsInDebuggerThread());
 }