private void ValidateDependencyChainContext(IJob job, string orderedJobs) { if (job.IsSelfReferencingDependency()) { throw new InvalidOperationException("Invalid job configuration! Self referencing dependencies are not allowed."); } if (this.IsCircularDependencyChain(orderedJobs, job)) { throw new InvalidOperationException("Invalid job configuration! Circular dependency chain are not allowed."); } }