Moved _downloadClient initialization from inherited Connector Classes to Connector-Main class.

This commit is contained in:
2023-05-19 19:50:26 +02:00
parent 881caafd43
commit 95eca6e1da
2 changed files with 17 additions and 9 deletions

View File

@ -5,9 +5,13 @@ namespace Tranga;
public abstract class Connector
{
public Connector(string downloadLocation)
internal string downloadLocation { get; } //Location of local files
protected DownloadClient downloadClient { get; }
protected Connector(string downloadLocation, uint downloadDelay)
{
this.downloadLocation = downloadLocation;
this.downloadClient = new DownloadClient(downloadDelay);
}
internal string downloadLocation { get; }