protected Inspector(IInspectorLog log)
 {
     Log = log;
     IsErrorEnabled = log.LogLevel.IsErrorEnabled();
     IsInfoEnabled = log.LogLevel.IsInfoEnabled();
     IsWarningEnabled = log.LogLevel.IsWarningEnabled();
 }
        public ErrorDetector(IInspectorLog log, bool checkExternalLinks, bool treatRedirectsAsErrors)
            : base(log)
        {
            if (checkExternalLinks)
                _checkedExternalLinks = new ConcurrentDictionary<Uri, HttpStatusCode>();

            _checkExternalLinks = checkExternalLinks;
            _treatRedirectsAsErrors = treatRedirectsAsErrors;
        }
 public AllReferencesCollector(IInspectorLog log, IEnumerable<Uri> targets)
     : base(log)
 {
     _targets = targets.ToList();
 }
 public LargePageDetector(IInspectorLog log, int byteSize)
     : base(log)
 {
     _byteSize = byteSize;
 }
 public ExternalLinksCollector(IInspectorLog log, IEnumerable<Uri> urisToIgnore)
     : base(log)
 {
     _urisToIgnore = new HashSet<Uri>(urisToIgnore);
 }
 public SlowPageDetector(IInspectorLog log, int milliseconds)
     : base(log)
 {
     _milliseconds = milliseconds;
 }
 public SchemeCollector(IInspectorLog log, IEnumerable<string> schemes)
     : base(log)
 {
     _schemes = schemes.ToList();
 }