Esempio n. 1
0
        }         // proc OnEndReadConfiguration

        private bool TestFilter(XElement x, string subPath)
        {
            var value = x.GetAttribute <string>("filter", null);

            if (value == null || value.Length == 0 || value == "*")
            {
                return(true);
            }
            else
            {
                return(ProcsDE.IsFilterEqual(subPath, value));
            }
        }         // func TestFilter
Esempio n. 2
0
        }         // proc ICronJobExecute.RunJob

        bool ICronJobExecute.CanRunParallelTo(ICronJobExecute other)
        {
            if (other == this)             // do not run parallel the same job
            {
                return(false);
            }

            if (runAfterJob == null)
            {
                return(true);
            }
            else
            {
                var o = other as ICronJobItem;
                return(o == null || runAfterJob.FirstOrDefault(c => ProcsDE.IsFilterEqual(o.UniqueName, c)) == null || CanRunParallelTo(o));
            }
        }         // func ICronJobExecute.CanRunParallelTo