/// <summary> /// </summary> /// <returns>true if any task on the chain is marked as exclusive</returns> public bool IsChainExclusive() { if (Affinity == TaskAffinity.Exclusive) { return(true); } return(DependsOn?.IsChainExclusive() ?? false); }