Beispiel #1
0
        public static LogDownloaderRule CreateBrowserDownloaderRule(IEnumerable <string> loginUrls, string expectedMimeType = null)
        {
            var result = new LogDownloaderRule(true, loginUrls, expectedMimeType);

            if (result.LoginUrls.Count == 0)
            {
                throw new ArgumentException("At least one login URL has to be provider", nameof(loginUrls));
            }
            return(result);
        }
 void IExtensionsRegistry.AddLogDownloaderRule(Uri uri, LogDownloaderRule rule)
 {
     logsDownloaderConfig.AddRule(uri, rule);
 }