示例#1
0
 public FileUploadService(
     gFileManager.gFileManagerClient fileMngClient,
     IOptionsMonitor <UploadOptions> uploadOpts,
     ILogger <FileUploadService> logger
     ) : base(fileMngClient, uploadOpts, logger, "/fileupload")
 {
 }
示例#2
0
 public AvatarUploadService(
     gFileManager.gFileManagerClient managerClient,
     IOptionsMonitor <UploadOptions> uploadOpts,
     ILogger <FileUploadService> logger
     ) : base(managerClient, uploadOpts, logger, "/avatarupload")
 {
 }
 public StartDownloadCommandHandler(
     gFileManager.gFileManagerClient fileMngClient,
     IHttpContextAccessor httpContextAccessor,
     IOptionsMonitor <UploadOptions> uploadOpt,
     ILogger <StartDownloadCommandHandler> logger)
 {
     _logger        = logger;
     _fileMngClient = fileMngClient;
     _uploadOpt     = uploadOpt.CurrentValue;
     _httpContext   = httpContextAccessor.HttpContext;
 }
示例#4
0
 public BaseFileUpload(
     gFileManager.gFileManagerClient storageClient,
     IOptionsMonitor <UploadOptions> uploadOpts,
     ILogger <FileUploadService> logger,
     string urlPath)
 {
     _urlPath       = urlPath;
     _fileMngClient = storageClient;
     _uploadOpts    = uploadOpts;
     _logger        = logger;
 }
示例#5
0
 public GetThumbnailQueryHandler(gFileManager.gFileManagerClient fileMngClient, IOptionsMonitor <UploadOptions> uploadOpt)
 {
     _fileMngClient = fileMngClient;
     _uploadOpt     = uploadOpt.CurrentValue;
 }
示例#6
0
 public DeleteFilesCommandHandler(IOptionsMonitor <UploadOptions> uploadOpt, gFileManager.gFileManagerClient fileMngClient)
 {
     _uploadOpt     = uploadOpt.CurrentValue;
     _fileMngClient = fileMngClient;
 }