public Text(string scope, IWorkContextAccessor workContextAccessor, ILocalizedStringManager localizedStringManager)
 {
     _scope = scope;
     _workContextAccessor = workContextAccessor;
     _localizedStringManager = localizedStringManager;
     Logger = NullLogger.Instance;
 }
Beispiel #2
0
 public Text(string scope, IWorkContextAccessor workContextAccessor, ILocalizedStringManager localizedStringManager)
 {
     _scope = scope;
     _workContextAccessor    = workContextAccessor;
     _localizedStringManager = localizedStringManager;
     Logger = NullLogger.Instance;
 }
Beispiel #3
0
 public ContentController(
     ShellSettings shellSettings,
     ICsrfTokenHelper csrfTokenHelper,
     IOrchardServices orchardServices,
     IAuthenticationService authenticationService,
     IContentExtensionsServices contentExtensionsServices,
     Lazy <IAutorouteService> autorouteService,
     ILocalizationService localizationService,
     ICultureManager cultureManager,
     IUtilsServices utilsServices,
     IContentDefinitionManager contentDefinitionManager,
     ITaxonomyService taxonomyService,
     ILocalizedStringManager localizedStringManager,
     IRazorTemplateManager razorTemplateManager,
     IRazorBaseService razorService)
 {
     _localizedStringManager   = localizedStringManager;
     _taxonomyService          = taxonomyService;
     _contentDefinitionManager = contentDefinitionManager;
     _shellSettings            = shellSettings;
     _csrfTokenHelper          = csrfTokenHelper;
     _orchardServices          = orchardServices;
     T = NullLocalizer.Instance;
     _authenticationService     = authenticationService;
     _contentExtensionsServices = contentExtensionsServices;
     _autorouteService          = autorouteService;
     _localizationService       = localizationService;
     _cultureManager            = cultureManager;
     _utilsServices             = utilsServices;
     Logger = NullLogger.Instance;
     _razorTemplateManager = razorTemplateManager;
     _razorService         = razorService;
 }
Beispiel #4
0
 public Text(string scope, WorkContextBase workContext, /*IWorkContextAccessor workContextAccessor,*/ ILocalizedStringManager localizedStringManager)
 {
     _scope = scope;
     // _workContextAccessor = workContextAccessor;
     _workContext            = workContext;
     _localizedStringManager = localizedStringManager;
     Logger = LogManager.GetLogger(this.GetType()); //NullLogger.Instance;
 }
Beispiel #5
0
        public SchubertStringLocalizer(
            IResourceNamesCache resourceNamesCache,
            ILocalizedStringManager localizedStringManager)
        {
            Guard.ArgumentNotNull(resourceNamesCache, nameof(resourceNamesCache));
            Guard.ArgumentNotNull(localizedStringManager, nameof(localizedStringManager));

            _resourceNamesCache     = resourceNamesCache;
            _localizedStringManager = localizedStringManager;
        }
 public SubscriptionEmailTemplateService(
     IContentManager contentManager,
     IRepository<SubscriptionEmailTemplateRecord> subscriptionNotificationTranslationRepository,
     ILocalizedStringManager localizedStringManager
 )
 {
     _contentManager = contentManager;
     _subscriptionNotificationTranslationRepository = subscriptionNotificationTranslationRepository;
     _localizedStringManager = localizedStringManager;
 }
Beispiel #7
0
        public ContentItemController(
            ShellSettings shellSettings,
            INotifier notifier,
            ICsrfTokenHelper csrfTokenHelper,
            IOrchardServices orchardServices,
            IAuthenticationService authenticationService,
            IContentExtensionService contentExtensionService,
            Lazy <IAutorouteService> autorouteService,
            ILocalizationService localizationService,
            ICultureManager cultureManager,
            IUtilsServices utilsServices,
            IContentDefinitionManager contentDefinitionManager,
            ITaxonomyService taxonomyService,
            ILocalizedStringManager localizedStringManager,
            ITransactionManager transactionManager,
            Lazy <IEnumerable <IContentHandler> > handlers,
            IRazorTemplateManager razorTemplateManager,
            IRazorBaseService razorService,
            IContentManager contentManager,
            IAuthorizer authorizer
            )
        {
            _razorTemplateManager     = razorTemplateManager;
            _localizedStringManager   = localizedStringManager;
            _taxonomyService          = taxonomyService;
            _contentDefinitionManager = contentDefinitionManager;
            _shellSettings            = shellSettings;
            _csrfTokenHelper          = csrfTokenHelper;
            _orchardServices          = orchardServices;
            _authenticationService    = authenticationService;
            _contentExtensionService  = contentExtensionService;
            _autorouteService         = autorouteService;
            _localizationService      = localizationService;
            _cultureManager           = cultureManager;
            _utilsServices            = utilsServices;
            _transactionManager       = transactionManager;
            _handlers       = handlers;
            _notifier       = notifier;
            _razorService   = razorService;
            _contentManager = contentManager;
            _authorizer     = authorizer;

            T      = NullLocalizer.Instance;
            Logger = NullLogger.Instance;
        }
 public UserController(
     ICsrfTokenHelper csrfTokenHelper,
     IOrchardServices orchardServices,
     ITaxonomyService taxonomyService,
     ILocalizedStringManager localizedStringManager,
     IAuthenticationService authenticationService,
     IContentExtensionsServices contentExtensionsServices,
     IUtilsServices utilsServices,
     IContactRelatedEventHandler contactEventHandler)
 {
     _csrfTokenHelper = csrfTokenHelper;
     _orchardServices = orchardServices;
     _taxonomyService = taxonomyService;
     T = NullLocalizer.Instance;
     _localizedStringManager = localizedStringManager;
     Log = NullLogger.Instance;
     _authenticationService     = authenticationService;
     _contentExtensionsServices = contentExtensionsServices;
     _utilsServices             = utilsServices;
     _contactEventHandler       = contactEventHandler;
 }
Beispiel #9
0
 public Text(IWorkContextAccessor workContextAccessor,
             ILocalizedStringManager localizedStringManager)
 {
     this.workContextAccessor    = workContextAccessor;
     this.localizedStringManager = localizedStringManager;
 }
        public SchubertStringLocalizerFactory(ILocalizedStringManager localizedStringManager)
        {
            Guard.ArgumentNotNull(localizedStringManager, nameof(localizedStringManager));

            _localizedStringManager = localizedStringManager;
        }
Beispiel #11
0
 public Text(ILocalizedStringManager localizedStringManager)
 {
     this.localizedStringManager = localizedStringManager;
 }
Beispiel #12
0
        public Text(ILocalizedStringManager localizedStringManager)
        {
            Guard.IsNotNull(localizedStringManager, "localizedStringManager");

            this._localizedStringManager = localizedStringManager;
        }