Пример #1
0
        public void TestInitialize()
        {
            ctx = new ETLContext();
            Assert.IsNotNull(ctx);
            job = ctx.CreateJob();
            Assert.IsNotNull(job);
            scheduler = new TestScheduler();
            job.OnStart.SubscribeOn(scheduler).Subscribe(j => Debug.WriteLine($"Job start at {j.Item2.ToShortTimeString()}"));
            job.OnCompleted.SubscribeOn(scheduler).Subscribe(j => Debug.WriteLine($"Job completed in {j.Item1.ElapsedTime.Duration()}"));

            options = new WaitFileOptions()
            {
                Path   = @"d:\",
                Filter = "*.txt"
            };
        }
Пример #2
0
 public TWaitForFile(IConfiguration cfg) : base()
 {
     Options = new WaitFileOptions();
     cfg.GetSection(TWAIT_FOR_FILE_SECTION).Bind(Options);
 }