示例#1
0
 public IndexModel(IDbCultureManager manager, IDbResourceExporter exporter, IApplicationLifetime lifetime, ILogger <IndexModel> logger)
 {
     _culManager          = manager;
     _exporter            = exporter;
     _applicationLifetime = lifetime;
     _logger = logger;
 }
示例#2
0
        public IndexModel(IDbResourceManager manager, IDbCultureManager cManager, ITranslatorFactory translatorFactory, ILogger <IndexModel> log)
        {
            _logger            = log;
            _resManager        = manager;
            _culManager        = cManager;
            _translatorFactory = translatorFactory;

            // get all registered Resource services names
            TranslationProviders = new List <SelectListItem>();

            foreach (var ts in translatorFactory.ServiceNames())
            {
                TranslationProviders.Add(new SelectListItem {
                    Text = ts, Value = ts
                });
            }
        }
示例#3
0
 public IndexModel(IDbResourceManager manager, IDbCultureManager cManger)
 {
     _resManager = manager;
     _culManager = cManger;
 }
示例#4
0
 public CreateModel(IDbResourceManager manager, IDbCultureManager cman)
 {
     _resManager = manager;
     _cMan       = cman;
 }