Exemple #1
0
        public ISController(IHttpContextAccessor httpContextAccessor, IConfiguration config, ITempDataProvider tempDataProvider, IServiceProvider serviceProvider, ILogger <object> logger)
        {
            _tempDataProvider    = tempDataProvider;
            _serviceProvider     = serviceProvider;
            _httpContextAccessor = httpContextAccessor;
            _config       = config;
            _logger       = logger;
            SignInManager = new ISSignInManager(config);
            var rs = int.TryParse(_config["DefaultPageSize"], out PageSize);

            VersionJs   = _config["VersionJS"];
            LogPath     = _config["LogPath"];
            RefLink     = _config["RefLink"];
            FilePath    = _config["FTPAccount:Path"];
            ftpAccount  = config["FTPAccount:UserName"];
            ftpPassword = config["FTPAccount:Password"];
            if (!string.IsNullOrEmpty(_config["IsAdmin"]))
            {
                IsAdmin = Convert.ToBoolean(_config["IsAdmin"]);
            }
        }
Exemple #2
0
 public ISController(IConfiguration config)
 {
     _config       = config;
     SignInManager = new ISSignInManager(config);
 }