Example #1
0
        public MultiLanguageController(
            ILog logger,
            IMultiLanguageService multiLanguageService)
        {
            Throw.IfNull(logger, nameof(logger));
            Throw.IfNull(multiLanguageService, nameof(multiLanguageService));

            _logger = logger;
            _multiLanguageService = multiLanguageService;
        }
Example #2
0
 public WorkContext(IHttpContextAccessor httpContextAccessor,
                    IOptions <Setting> setting,
                    ICommonLanguagesRequestServices commonLanguagesRequestServices,
                    IMultiLanguageService multiLanguageService
                    )
 {
     _httpContextAccessor            = httpContextAccessor;
     _setting                        = setting.Value;
     _commonLanguagesRequestServices = commonLanguagesRequestServices;
     _multiLanguageService           = multiLanguageService;
 }
Example #3
0
 public TravelBlogController(IPostService postService,
                             IFileStreamService fileStreamService,
                             ISubscribeService subscribeService,
                             IMultiLanguageService multiLanguageService,
                             IEmailSender emailSender,
                             IHttpContextAccessor httpContextAccessor,
                             IOptions <CommonSettings> commonSettingsOptions,
                             IWebHelper webHelper,
                             IWorkContext workContext
                             )
 {
     _postService          = postService;
     _fileStreamService    = fileStreamService;
     _subscribeService     = subscribeService;
     _multiLanguageService = multiLanguageService;
     _emailSender          = emailSender;
     _httpContextAccessor  = httpContextAccessor;
     _commonSettings       = commonSettingsOptions.Value;
     _webHelper            = webHelper;
     _workContext          = workContext;
 }
Example #4
0
 public LanguageService(IMultiLanguageService multiLanguageService)
 {
     _multiLanguageService = multiLanguageService;
 }
Example #5
0
 public YachtDetailController(IYatchService yatchService,
                              IMultiLanguageService multiLanguageService)
 {
     _yatchService         = yatchService;
     _multiLanguageService = multiLanguageService;
 }