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