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
Example #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);
 }
 /// <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);
 }