renamed from service to repository, makes more sense i guess

This commit is contained in:
TomPallister
2016-10-05 20:49:22 +01:00
parent 229c0878ed
commit f505fd6e90
7 changed files with 24 additions and 29 deletions

View File

@ -2,7 +2,7 @@ using Ocelot.Library.Infrastructure.Responses;
namespace Ocelot.Library.Infrastructure.Services
{
public interface IRequestDataService
public interface IScopedRequestDataRepository
{
Response Add<T>(string key, T value);
Response<T> Get<T>(string key);

View File

@ -5,11 +5,11 @@ using Ocelot.Library.Infrastructure.Responses;
namespace Ocelot.Library.Infrastructure.Services
{
public class RequestDataService : IRequestDataService
public class ScopedRequestDataRepository : IScopedRequestDataRepository
{
private readonly IHttpContextAccessor _httpContextAccessor;
public RequestDataService(IHttpContextAccessor httpContextAccessor)
public ScopedRequestDataRepository(IHttpContextAccessor httpContextAccessor)
{
_httpContextAccessor = httpContextAccessor;
}