public bool IsNextPolicy(IContentSource source, ITransformerPolicy policy) { return source.Files.All(x => { var policies = _policies[x]; return policies.Any() && ReferenceEquals(policies.Peek(), policy); }); }
public bool IsNextPolicy(IContentSource source, ITransformerPolicy policy) { return(source.Files.All(x => { var policies = _policies[x]; return policies.Any() && ReferenceEquals(policies.Peek(), policy); })); }
public void DequeueTransformer(IContentSource source, ITransformerPolicy policy) { source.Files.Each(x => { var policies = _policies[x]; if (policies.FirstOrDefault() == policy) { policies.Dequeue(); } }); }
public void DequeueTransformer(IContentSource source, ITransformerPolicy policy) { source.Files.Each(x => { var policies = _policies[x]; if (policies.FirstOrDefault() == policy) { policies.Dequeue(); } }); }
public bool MustBeAfter(ITransformerPolicy policy) { return(_mustBeAfterRules.Any(x => x(policy))); }