Пример #1
0
        public WaitFile(IConfiguration configuration)
        {
            WaitFileOptions options = new WaitFileOptions();

            configuration.GetSection(WAIT_FILE_SECTION).Bind(options);
            SetOptions(options);
            Initialize();
        }
Пример #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;
 }
Пример #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();
        }