예제 #1
0
 public async Task <IEnumerable <DummyData> > Producer1Consumer1DeserializingLoaderAsync()
 {
     using (var downloader = new Producer1Consumer1DeserializingLoader(Constants.MaxConcurrency))
     {
         return(await downloader.LoadAsync(_uris));
     }
 }
예제 #2
0
 public async Task Producer1Consumer1DeserializingLoaderAsync()
 {
     using (var downloader = new Producer1Consumer1DeserializingLoader(Constants.MaxConcurrency))
     {
         (await downloader.LoadAsync(_uris)).Consume(_consumer);
     }
 }