Esempio n. 1
0
 public HttpLogService(MongoDBContext mongoDBContext, IException_Service exceptionService)
 {
     _mongoDBContext   = mongoDBContext;
     _exceptionService = exceptionService;
 }
Esempio n. 2
0
        //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> >();
        }
Esempio n. 3
0
 public GatewayMiddleware(IHttpLog_Service httpLogService, IException_Service exceptionService, RequestDelegate requestDelegate)
 {
     _httpLogService   = httpLogService;
     _exceptionService = exceptionService;
     _requestDelegate  = requestDelegate;
 }