BlueCollar.Console.Bootstraps.Bootstraps C# (CSharp) Метод

Bootstraps() публичный Метод

Initializes a new instance of the Bootstraps class.
public Bootstraps ( string applicationPath, string configPath, int threshold ) : System
applicationPath string The application path.
configPath string The configuration file path, if applicable.
threshold int The threshold, in milliseconds, to compress file system events into.
Результат System
        public Bootstraps(string applicationPath, string configPath, int threshold)
        {
            if (string.IsNullOrEmpty(applicationPath))
            {
                throw new ArgumentNullException("applicationPath", "applicationPath must contain a value.");
            }

            if (threshold < 500)
            {
                throw new ArgumentOutOfRangeException("threshold", "threshold must be greater than or equal to 500.");
            }

            if (!Path.IsPathRooted(applicationPath))
            {
                applicationPath = Path.GetFullPath(applicationPath);
            }

            this.ApplicationPath = applicationPath;
            this.ConfigPath = configPath ?? string.Empty;
            this.Threshold = threshold;
            this.watchers = new List<BlueCollar.FileSystemWatcher>();
        }