Пример #1
0
 public FileServerService(IUserRepository userRepository, IUserSharedFileRepository userSharedFileRepository, IFileSharedGroupRepository fileSharedGroupRepository,
     IFileRepository fileRepository, ISemesterSubjectFileRepository semesterSubjectFileRepository, IUnitOfWork unitOfWork)
 {
     _ftpClient = new FtpClient(LogicConstants.FtpServerAddress, LogicConstants.FtpUserLogin, LogicConstants.FtpUserPassword);
     //_fileServer = new FtpServer(LogicConstants.FtpServerAddress);
     //_fileServerUser = new FtpUser(LogicConstants.FtpUserLogin, LogicConstants.FtpUserPassword, _fileServer);
     _userRepository = userRepository;
     _fileSharedGroupRepository = fileSharedGroupRepository;
     _userSharedFileRepository = userSharedFileRepository;
     _fileRepository = fileRepository;
     _semesterSubjectFileRepository = semesterSubjectFileRepository;
     _unitOfWork = unitOfWork;
 }
Пример #2
0
 public FileService(IFileRepository fileRepository, ISemesterSubjectFileRepository semesterSubjectFileRepository, IFileSharedGroupRepository fileSharedGroupRepository,
     IUserSharedFileRepository userSharedFileRepository, IUserRepository userRepository, IUserPreferencesRepository userPreferencesRepository,
     IGroupUserRepository groupUserRepository, IGroupRepository groupRepository, 
     IFileTagPatternRepository fileTagPatternRepository, IUnitOfWork unitOfWork)
 {
     _fileRepository = fileRepository;
     _semesterSubjectFileRepository = semesterSubjectFileRepository;
     _fileSharedGroupRepository = fileSharedGroupRepository;
     _userSharedFileRepository = userSharedFileRepository;
     _userRepository = userRepository;
     _userPreferencesRepository = userPreferencesRepository;
     _groupUserRepository = groupUserRepository;
     _groupRepository = groupRepository;
     _fileTagPatternRepository = fileTagPatternRepository;
     _unitOfWork = unitOfWork;
 }