C# Class X.CoreLib.Shared.Services.DownloadService

Mostrar archivo Open project: liquidboy/X

Public Methods

Method Description
Downloader ( string aggregateId, string url, string backupUrl, string fileName, int type, CancellationToken cancellationToken, string storageFolder = "ModernCSFx" ) : Task
SendSystemWideMessage ( string identifier, string content, string sourceId = "", string action = "", string url1 = "", string aggregateId = "", string text1 = "", string text2 = "", int int1 = 2 ) : void

Private Methods

Method Description
AttemptToDownloadPictureAsync ( DownloadRequest dr, CancellationToken cancellationToken ) : Task
AttemptToDownloadVideoAsync ( DownloadRequest dr, CancellationToken cancellationToken ) : Task
DownloadService ( ) : System
ExecuteDownload ( DownloadRequest request, CancellationToken ct ) : Task
FileExists ( string subFolder, string filename, int type ) : Task
GetFilesAsync ( string subFolder, int type ) : Task>
SaveUrlContentToStorage ( string url, Stream stream, CancellationToken ct ) : Task

Method Details

Downloader() public method

public Downloader ( string aggregateId, string url, string backupUrl, string fileName, int type, CancellationToken cancellationToken, string storageFolder = "ModernCSFx" ) : Task
aggregateId string
url string
backupUrl string
fileName string
type int
cancellationToken System.Threading.CancellationToken
storageFolder string
return Task

SendSystemWideMessage() public method

public SendSystemWideMessage ( string identifier, string content, string sourceId = "", string action = "", string url1 = "", string aggregateId = "", string text1 = "", string text2 = "", int int1 = 2 ) : void
identifier string
content string
sourceId string
action string
url1 string
aggregateId string
text1 string
text2 string
int1 int
return void