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(); }
public CsvResult DownloadCompleted(Csv csv) { return new CsvResult { Data = csv }; }