private VideoTransferService()
 {
     _configuration = CommonService.ConfigInit(Directory.GetCurrentDirectory());
     if (!long.TryParse(_configuration["Appsettings:VideoMinSize"], out _minSize))
     {
         _minSize = MINSIZE;
     }
 }
 /// <summary>
 /// 资源初始化
 /// </summary>
 public FileTransferHandler()
 {
     _configPath    = Directory.GetCurrentDirectory();
     _configuration = CommonService.ConfigInit(_configPath);
     _inputPath     = _configuration["Appsettings:InputPath"];
     _outputPath    = _configuration["Appsettings:OutputPath"];
     _fileTypes     = _configuration["Appsettings:FileTypes"].Split(',').ToList();
 }
Ejemplo n.º 3
0
 private ImageTransferService()
 {
     _configuration = CommonService.ConfigInit(Directory.GetCurrentDirectory());
     if (!int.TryParse(_configuration["Appsettings:ImageMinCount"], out _minCount))
     {
         _minCount = DEFAULT_MINCOUNT;
     }
 }