public static Task <AuctionDataFile> Enqueue(AuctionFile auctionFile)
 {
     return(Queue.Enqueue(() => ApiProvider.GetFromJson(new ApiRequest <AuctionDataFile>(new Uri(auctionFile.Url))), CancellationToken.None));
 }
Example #2
0
 public Task <T> MakeRequestAsync <T>(ApiRequest <T> apiRequest) where T : IApiEndpoint
 {
     return(_apiQueue.Enqueue(() => GetFromJson(apiRequest), CancellationToken.None));
 }