public HttpLogService(MongoDBContext mongoDBContext, IException_Service exceptionService) { _mongoDBContext = mongoDBContext; _exceptionService = exceptionService; }
//protected string[] ImageExtensions { get { return new string[] { ".jpg", ".jpeg", ".png", ".tif", ".bmp", ".gif" }; } } //protected readonly string[] Languages = new string[] { "en", "en-US", "fa" }; //protected readonly IReadOnlyCollection<TimeZoneInfo> TimeZones = TimeZoneInfo.GetSystemTimeZones(); public BaseController() { _mapper = ServiceLocator.Current.GetInstance <IMapper>(); _exceptionService = ServiceLocator.Current.GetInstance <IException_Service>(); _stringLocalizer = ServiceLocator.Current.GetInstance <IStringLocalizer <BaseController> >(); }
public GatewayMiddleware(IHttpLog_Service httpLogService, IException_Service exceptionService, RequestDelegate requestDelegate) { _httpLogService = httpLogService; _exceptionService = exceptionService; _requestDelegate = requestDelegate; }