Exemplo n.º 1
0
        public void WriteFile(WebPage page)
        {
            if (_fileToDomainMap.ContainsKey(page.Uri.AbsoluteUri))
            {
                return;
            }

            Guid guid = Guid.NewGuid();
            string fileName = guid.ToString() + ".html";

            page.SavePage(Path.Combine(_outputPath, fileName));

            _fileToDomainMap.TryAdd(page.Uri.AbsoluteUri, fileName);
        }