Добавьте файлы проекта.
This commit is contained in:
12
Configuration/CrawlerOptions.cs
Normal file
12
Configuration/CrawlerOptions.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
namespace CRAWLER.Configuration;
|
||||
|
||||
internal sealed class CrawlerOptions
|
||||
{
|
||||
public string BaseUrl { get; set; } = "https://www.ktopoverit.ru";
|
||||
public string CatalogPathFormat { get; set; } = "/poverka/gosreestr_sredstv_izmereniy?page={0}";
|
||||
public int RequestDelayMilliseconds { get; set; } = 350;
|
||||
public int DefaultPagesToScan { get; set; } = 1;
|
||||
public string PdfStoragePath { get; set; } = "%LOCALAPPDATA%\\CRAWLER\\PdfStore";
|
||||
public int TimeoutSeconds { get; set; } = 30;
|
||||
public string UserAgent { get; set; } = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) CRAWLER/1.0";
|
||||
}
|
||||
19
Configuration/DatabaseOptions.cs
Normal file
19
Configuration/DatabaseOptions.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
namespace CRAWLER.Configuration;
|
||||
|
||||
internal sealed class DatabaseOptions
|
||||
{
|
||||
public string ApplicationName { get; set; } = "CRAWLER";
|
||||
public int CommandTimeoutSeconds { get; set; } = 60;
|
||||
public int ConnectRetryCount { get; set; } = 3;
|
||||
public int ConnectRetryIntervalSeconds { get; set; } = 5;
|
||||
public int ConnectTimeoutSeconds { get; set; } = 15;
|
||||
public string Database { get; set; } = "CRAWLER";
|
||||
public bool Encrypt { get; set; }
|
||||
public bool IntegratedSecurity { get; set; } = true;
|
||||
public bool MultipleActiveResultSets { get; set; } = true;
|
||||
public bool Pooling { get; set; } = true;
|
||||
public int MaxPoolSize { get; set; } = 100;
|
||||
public int MinPoolSize { get; set; }
|
||||
public string Server { get; set; } = @".\SQLEXPRESS";
|
||||
public bool TrustServerCertificate { get; set; } = true;
|
||||
}
|
||||
Reference in New Issue
Block a user