public ServiceRepositoryBase(HttpClient httpClient, Expression <Func <TEntity, TKey> > keyTaker, IHttpRequestMessageProviderAsync messageProvider) { _Client = httpClient; _KeyTaker = keyTaker.Compile(); _RequestMessageProvider = messageProvider; }
protected RepositoryBase( IConfiguration configuration, HttpClient httpClientFactory, IHttpRequestMessageProviderAsync messageProvider, Expression <Func <TEntity, TKey> > keyTaker) { _BaseUrl = configuration.GetValue <string>("ConnectionStrings:DefaultUrl"); _ServiceRepository = new ServiceRepositoryBase <TEntity, TKey>(httpClientFactory, keyTaker, messageProvider); }
public AuthorsRepository(IConfiguration configuration, IHttpClientFactory clientFactory, IHttpRequestMessageProviderAsync messageProvider) : base(configuration, clientFactory, messageProvider, x => x.Id) { }
public BooksRepository(IConfiguration configuration, HttpClient client, IHttpRequestMessageProviderAsync messageProvider) : base(configuration, client, messageProvider, x => x.Id) { }