public EditFileCommandHandler(
     IFileRepository fileRepository,
     ICurrentUser currentUser,
     IPostCommitEventPublisher eventBus)
 {
     this.fileRepository = fileRepository;
     this.currentUser    = currentUser;
     this.eventBus       = eventBus;
 }
 public AcquireFileLockCommandHandler(
     IFileLockingService fileLockingService,
     IFileRepository fileRepository,
     IPostCommitEventPublisher eventBus,
     ICurrentUserSource currentUserSource)
 {
     this.fileLockingService = fileLockingService;
     this.eventBus           = eventBus;
     this.currentUserSource  = currentUserSource;
     this.fileRepository     = fileRepository;
 }
Exemple #3
0
 public RemoveFileLockCommandHandler(
     IFileLockingService fileLockingService,
     IFileRepository fileRepository,
     ICurrentUser currentUser,
     IPostCommitEventPublisher eventBus)
 {
     this.fileLockingService = fileLockingService;
     this.fileRepository     = fileRepository;
     this.currentUser        = currentUser;
     this.eventBus           = eventBus;
 }
Exemple #4
0
 public ShareFileCommandHandler(
     ICurrentUser currentUser,
     IFileRepository fileRepository,
     IUserRepository userRepository,
     IPostCommitEventPublisher eventBus)
 {
     this.currentUser    = currentUser;
     this.fileRepository = fileRepository;
     this.eventBus       = eventBus;
     this.userRepository = userRepository;
 }
 public DeleteFileCommandHandler(
     IFileStorage fileStorage,
     ICurrentUser currentUser,
     IFileRepository fileRepository,
     IPostCommitEventPublisher eventBus)
 {
     this.fileStorage    = fileStorage;
     this.currentUser    = currentUser;
     this.fileRepository = fileRepository;
     this.eventBus       = eventBus;
 }