May 2019
Intermediate to advanced
504 pages
11h 50m
English
Naturally, while talking about data stores, the foremost abundant pattern in development work is the repository pattern. In the context of local and remote data, we could create small repositories that implement the same exact repository interface and create a manager class to coordinate the repositories.
Let's start with a transient data repository, such as Auctions. For the Auctions API, let's assume that we have three methods to retrieve:
Let's define our interface for these methods:
public interface IAuctionsApi { Task<IEnumerable<Auction>> GetAuctions(); Task<Auction> GetAuction(string auctionId); Task UpdateAuction(Auction ...Read now
Unlock full access