void OnDownloadCompleted(object sender, DownloadStringCompletedEventArgs e) { bool success = e.Error == null; _memoryService.WriteFile(e.UserState.ToString(), e.Result); OnDownloadCompleted(e.UserState.ToString(), success); }
public void Export <T>(IEnumerable <T> collection, string fileName) { var mapper = GetMapperForType(typeof(T)); var csv = MapCollection(collection, mapper); _memoryService.WriteFile(fileName, "HomeManager", csv, true); }