mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-07-31 08:35:58 +08:00
renamed from service to repository, makes more sense i guess
This commit is contained in:
@ -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);
|
@ -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;
|
||||
}
|
Reference in New Issue
Block a user