Ejemplo n.º 1
0
 public DocumentController(IUploadFileCommand uploadFileCommand, ICurrentSchema currentSchema, IRetrieveDocumentsQuery retrieveDocumentsQuery, IRetrieveDocumentUrlQuery retrieveDocumentUrlQuery)
 {
     this.uploadFileCommand        = uploadFileCommand;
     this.currentSchema            = currentSchema;
     this.retrieveDocumentsQuery   = retrieveDocumentsQuery;
     this.retrieveDocumentUrlQuery = retrieveDocumentUrlQuery;
 }
Ejemplo n.º 2
0
 public PresentationController(
     ICurrentSchema currentSchema,
     ICreatePresentationCommand createPresentationCommand,
     IRetrievePresentationToViewQuery retrievePresentationToViewQuery,
     IUploadFileCommand uploadFileCommand
     )
 {
     this.currentSchema                   = currentSchema;
     this.createPresentationCommand       = createPresentationCommand;
     this.retrievePresentationToViewQuery = retrievePresentationToViewQuery;
     this.uploadFileCommand               = uploadFileCommand;
 }
Ejemplo n.º 3
0
 public SignupController(
     NpgsqlConnection connection,
     ICurrentSchema currentSchema,
     ICreatePresentationCommand createPresentationCommand,
     IRetrievePresentationToViewQuery retrievePresentationToViewQuery,
     IUploadFileCommand uploadFileCommand)
 {
     this.connection                      = connection;
     this.currentSchema                   = currentSchema;
     this.createPresentationCommand       = createPresentationCommand;
     this.retrievePresentationToViewQuery = retrievePresentationToViewQuery;
     this.uploadFileCommand               = uploadFileCommand;
 }
Ejemplo n.º 4
0
 public FileSystemService(
     IFileSystem fileSystem,
     IGetFolderSizeCommand <GetFolderSizeResult, long, GetFolderSizeState> getFolderSizeCommand,
     IUploadFileCommand <UploadFileResult, object, UploadFileState> uploadFileCommand,
     IRemoveCommand <RemoveResult, bool, RemoveState> removeCommand,
     IDownloadFileCommand <DownloadFileResult, Stream, DownloadFileState> downloadFileCommand,
     IRenameCommand <RenameResult, object, RenameState> renameCommand,
     ICreateFolderCommand <CreateFolderResult, object, CreateFolderState> createFolderCommand,
     ICopyCommand <CopyResult, object, CopyState> copyCommand
     )
 {
     _fileSystem           = fileSystem;
     _getFolderSizeCommand = getFolderSizeCommand;
     _uploadFileCommand    = uploadFileCommand;
     _removeCommand        = removeCommand;
     _downloadFileCommand  = downloadFileCommand;
     _renameCommand        = renameCommand;
     _createFolderCommand  = createFolderCommand;
     _copyCommand          = copyCommand;
 }
Ejemplo n.º 5
0
 public T_ArchivoController(IUploadFileCommand IUploadFileCommand, IGetArchivoByCodigoSolCreditoQuery IGetArchivoByCodigoSolCreditoQuery)
 {
     _IUploadFileCommand = IUploadFileCommand;
     _IGetArchivoByCodigoSolCreditoQuery = IGetArchivoByCodigoSolCreditoQuery;
 }
Ejemplo n.º 6
0
 public void Post([FromForm] UploadFileDto dto, [FromServices] IUploadFileCommand command)
 {
     _executor.ExecuteCommand(command, dto);
 }