示例#1
0
 public void DownloadAsync()
 {
     AsyncManager.OutstandingOperations.Increment();
     var csv = new Csv(provider, Request.Url);
     csv.Complete += (src, e) =>
     {
         AsyncManager.Parameters["csv"] = e.UserState;
         AsyncManager.OutstandingOperations.Decrement();
     };
     csv.Load();
 }
示例#2
0
 public CsvResult DownloadCompleted(Csv csv)
 {
     return new CsvResult { Data = csv };
 }