コード例 #1
0
        void OnDownloadCompleted(object sender, DownloadStringCompletedEventArgs e)
        {
            bool success = e.Error == null;

            _memoryService.WriteFile(e.UserState.ToString(), e.Result);
            OnDownloadCompleted(e.UserState.ToString(), success);
        }
コード例 #2
0
        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);
        }