Exemple #1
0
        public WaitFile(IConfiguration configuration)
        {
            WaitFileOptions options = new WaitFileOptions();

            configuration.GetSection(WAIT_FILE_SECTION).Bind(options);
            SetOptions(options);
            Initialize();
        }
Exemple #2
0
 private void SetOptions(WaitFileOptions options)
 {
     options               = options ?? new WaitFileOptions();
     NotifyFilter          = options.NotifyFilters;
     Path                  = options.Path;
     Filter                = options.Filter;
     IncludeSubDirectories = options.IncludeSubDirectories;
     StopOn                = options.StopOn;
 }
Exemple #3
0
        public WaitFile(WaitFileOptions options) : base()
        {
/*
 *          NotifyFilter = options.NotifyFilters;
 *          Path = options.Path;
 *          Filter = options.Filter;
 *          IncludeSubDirectories = options.IncludeSubDirectories;
 *          StopOn = options.StopOn;*/
            SetOptions(options);
            Initialize();
        }