mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
singular entity in repo name
This commit is contained in:
parent
7d1d5b82bc
commit
16dbe8b752
4 changed files with 7 additions and 7 deletions
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
namespace FilterLists.Agent.Core.Interfaces
|
||||
{
|
||||
public interface IUrlsRepository
|
||||
public interface IUrlRepository
|
||||
{
|
||||
Task<IEnumerable<Uri>> GetAllAsync<TModel>();
|
||||
}
|
||||
|
|
@ -26,7 +26,7 @@ public static void RegisterAgentServices(this IServiceCollection services)
|
|||
services.AddHttpClient<AgentHttpClient>();
|
||||
services.AddSingleton<IFilterListsApiClient, FilterListsApiClient>();
|
||||
services.AddTransient<IListInfoRepository, ListInfoRepository>();
|
||||
services.AddTransient<IUrlsRepository, UrlsRepository>();
|
||||
services.AddTransient<IUrlRepository, UrlRepository>();
|
||||
}
|
||||
|
||||
private static void AddConfiguration(this IServiceCollection services)
|
||||
|
|
|
|||
|
|
@ -17,12 +17,12 @@ public class Command : IRequest
|
|||
public class Handler : AsyncRequestHandler<Command>
|
||||
{
|
||||
private readonly IMediator _mediator;
|
||||
private readonly IUrlsRepository _repo;
|
||||
private readonly IUrlRepository _repo;
|
||||
|
||||
public Handler(IMediator mediator, IUrlsRepository urlsRepository)
|
||||
public Handler(IMediator mediator, IUrlRepository urlRepository)
|
||||
{
|
||||
_mediator = mediator;
|
||||
_repo = urlsRepository;
|
||||
_repo = urlRepository;
|
||||
}
|
||||
|
||||
protected override async Task Handle(Command request, CancellationToken cancellationToken)
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
namespace FilterLists.Agent.Infrastructure.Repositories
|
||||
{
|
||||
public class UrlsRepository : IUrlsRepository
|
||||
public class UrlRepository : IUrlRepository
|
||||
{
|
||||
private static readonly Dictionary<string, string> EntityUrlsEndpoints = new Dictionary<string, string>
|
||||
{
|
||||
|
|
@ -23,7 +23,7 @@ public class UrlsRepository : IUrlsRepository
|
|||
|
||||
private readonly IFilterListsApiClient _apiClient;
|
||||
|
||||
public UrlsRepository(IFilterListsApiClient apiClient)
|
||||
public UrlRepository(IFilterListsApiClient apiClient)
|
||||
{
|
||||
_apiClient = apiClient;
|
||||
}
|
||||
Loading…
Reference in a new issue