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>();
}