ExpansionDownloader.Service.DownloaderService.GenerateTempSaveFileName C# (CSharp) Method

GenerateTempSaveFileName() public method

Returns the filename (where the file should be saved) from info about a download
public GenerateTempSaveFileName ( string fileName ) : string
fileName string /// The file Name. ///
return string
        public string GenerateTempSaveFileName(string fileName)
        {
            return string.Format(
                "{0}{1}{2}{3}", 
                Helpers.GetSaveFilePath(this), 
                Path.DirectorySeparatorChar, 
                fileName, 
                TemporaryFileExtension);
        }

Usage Example

Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="State"/> class.
 /// </summary>
 /// <param name="info">
 /// The info.
 /// </param>
 /// <param name="service">
 /// The service.
 /// </param>
 public State(DownloadInfo info, DownloaderService service)
 {
     this.RedirectCount = info.RedirectCount;
     this.RequestUri    = info.Uri;
     this.Filename      = service.GenerateTempSaveFileName(info.FileName);
 }
All Usage Examples Of ExpansionDownloader.Service.DownloaderService::GenerateTempSaveFileName