Exemplo n.º 1
0
 public UpDownWrapper(StorageType storageType)
 {
     this.StorageType    = storageType;
     fileManagement      = FolderFileBantuan.GetInstance.DictFile[this.StorageType];
     fileManagementAsync = FolderFileBantuan.GetInstance.DictFileAsync[this.StorageType];
     folderManagement    = FolderFileBantuan.GetInstance.DictFolder[this.StorageType];
 }
Exemplo n.º 2
0
 public AttachmentService(IAttachmentRepository repository,
                          IUnitOfWork unitOfWork,
                          IFileManagement fileManagement)
     : base(repository, unitOfWork)
 {
     FileManagement = fileManagement;
 }
Exemplo n.º 3
0
 public FileProcessingService(ILogger <FileProcessingService> logger,
                              IFileManagement fileManagement,
                              IFileProcessor fileProcessor)
 {
     _fileManagement = fileManagement;
     _fileProcessor  = fileProcessor;
     _logger         = logger;
 }
Exemplo n.º 4
0
 public FileController(IFilesRepository filesRepository,
                       IFileManagement fileManagement,
                       IOptions <FileStorageOptions> fileStorageOptions)
 {
     _filesRepository    = filesRepository;
     _fileManagement     = fileManagement;
     _fileStorageOptions = fileStorageOptions.Value;
 }
Exemplo n.º 5
0
 public VideoController(
     IVideoRequestService videoRequestService,
     IFileManagement fileManagement,
     ILogger <VideoController> logger)
 {
     VideoRequestService = videoRequestService;
     FileManagement      = fileManagement;
     _logger             = logger;
 }
Exemplo n.º 6
0
 public HangfireService(
     IVideoRequestService videoRequestService,
     IFileManagement fileManagement,
     IAttachmentService attachmentService)
 {
     VideoRequestService = videoRequestService;
     FileManagement      = fileManagement;
     AttachmentService   = attachmentService;
 }
Exemplo n.º 7
0
        public void Add(IFileManagement fileManagement)
        {
            fileManagementList.Add(fileManagement);

            if (fileManagement is FileContent)
            {
                var customFile = fileManagement as FileContent;

                customFile.ParentDirectory = this;
            }
        }
Exemplo n.º 8
0
        public FileManagementTest()
        {
            _logger = new Mock <ILogger <FileManagement> >();
            _pathConfigurationsMock = new Mock <IOptions <PathConfigurations> >();

            _fileManagement = new FileManagement(_logger.Object,
                                                 _pathConfigurationsMock.Object);

            base.Initialize();

            _pathConfigurationsMock.Setup(x => x.Value).Returns(PathConfigurations);
        }
 public FileController(ILogger <FileController> logger,
                       IFileManagement fileManagement)
 {
     _logger         = logger;
     _fileManagement = fileManagement;
 }
Exemplo n.º 10
0
 public FileController(ILifetimeScope container)
 {
     _logger         = container.Resolve <ILogger <FileController> >();
     _fileManagement = container.Resolve <IFileManagement>();
 }
Exemplo n.º 11
0
 public FileManagementController(ILogger <FileManagementController> logger, IFileManagement fileManagement)
 {
     _logger     = logger;
     _repository = fileManagement;
 }