roadie/RoadieApi/Controllers/EntityControllerBase.cs
Steven Hildreth 341267cacc WIP
2018-11-03 16:21:36 -05:00

28 lines
No EOL
999 B
C#

using Microsoft.AspNet.OData;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Logging;
using Roadie.Library.Setttings;
using Roadie.Library.Caching;
using Roadie.Library.Data;
namespace Roadie.Api.Controllers
{
public abstract class EntityControllerBase : ODataController
{
protected readonly ICacheManager _cacheManager;
protected readonly IConfiguration _configuration;
protected readonly IRoadieDbContext _RoadieDbContext;
protected readonly IRoadieSettings _RoadieSettings;
protected ILogger _logger;
public EntityControllerBase(IRoadieDbContext RoadieDbContext, ICacheManager cacheManager, IConfiguration configuration, IRoadieSettings RoadieSettings)
{
this._RoadieDbContext = RoadieDbContext;
this._cacheManager = cacheManager;
this._configuration = configuration;
this._RoadieSettings = RoadieSettings;
}
}
}