예제 #1
0
 public ResourcesService(IMemoryCache cache, IMapper mapper, ISessionBagService sessionBag, IUtilitiesManager client,
                         IUserSessionService userSessionService, IOptions <AppSettings> appSettings,
                         IOptions <AppSettings> airlineSettings) : base(appSettings)
 {
     _cache              = cache ?? throw new ArgumentNullException(nameof(cache));;
     _mapper             = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _sessionBag         = sessionBag ?? throw new ArgumentNullException(nameof(sessionBag));
     _client             = client ?? throw new ArgumentNullException(nameof(client));
     _userSessionService = userSessionService ?? throw new ArgumentNullException(nameof(userSessionService));
     _airlineSettings    = airlineSettings != null && airlineSettings.Value != null ? airlineSettings.Value :
                           throw new ArgumentNullException(nameof(airlineSettings));
 }
예제 #2
0
 public SubCategoriesController(ISubCategoriesManger subCategoriesManger, IUtilitiesManager utilitiesManager, IHostingEnvironment hostingEnvironment)
 {
     _subCategoriesManger = subCategoriesManger;
     _utilitiesManager    = utilitiesManager;
     _hostingEnvironment  = hostingEnvironment;
 }
예제 #3
0
 public ProductController(IProductManager productManager, IUtilitiesManager utilities, IHostingEnvironment hostingEnvironment)
 {
     _productManager     = productManager;
     _utilities          = utilities;
     _hostingEnvironment = hostingEnvironment;
 }