コード例 #1
0
ファイル: FileUploadService.cs プロジェクト: jalex/Swarm
 public FileUploadService(IFileUploadRepository fileUpload)
 {
     if (fileUpload == null)
     {
         throw new ArgumentNullException("fileUpload");
     }
     uploadRepository = fileUpload;
 }
コード例 #2
0
 public FileUploadService(IAmazonS3 s3Client, IFileUploadSettings fileUploadSettings, IFileUploadRepository fileUploadRepository, IS3CsvRepository s3Repository, IFileUploadScenarioRepository fileUploadScenarioRepository)
 {
     _s3Client                     = s3Client;
     _fileUploadSettings           = fileUploadSettings;
     _fileUploadRepository         = fileUploadRepository;
     _s3Repository                 = s3Repository;
     _fileUploadScenarioRepository = fileUploadScenarioRepository;
 }
コード例 #3
0
ファイル: AdmController.cs プロジェクト: x55756016/kmproject
 public AdmController()
 {
     server      = MongoServer.Create(MongoConnStr);
     database    = server.GetDatabase(MongoDBName, SafeMode.True);
     _userinfo   = new UserInfoService();
     _dictionary = new DictionaryService();
     _file       = new EFFileUploadRepository();
 }
コード例 #4
0
 public FileUploadService(IFileSystem selfFileSystem,
                          IFileUploadRepository fileUploadRepository,
                          IUserRepository userRepository)
 {
     _selfFileSystem           = selfFileSystem;
     _selfFileUploadRepository = fileUploadRepository;
     _selfUserRepository       = userRepository;
 }
コード例 #5
0
ファイル: FileUploadService.cs プロジェクト: bevacqua/Swarm
 public FileUploadService(IFileUploadRepository fileUpload)
 {
     if (fileUpload == null)
     {
         throw new ArgumentNullException("fileUpload");
     }
     uploadRepository = fileUpload;
 }
コード例 #6
0
 public SelfEvaluationService(ISelfEvaluationRepository selfEvaluationRepository,
                              IFileUploadRepository selfFileUploadRepository,
                              IEmployeeRepository selfEmployeeRepository)
     : base(selfEvaluationRepository)
 {
     _selfEvaluationRepository = selfEvaluationRepository;
     _selfFileUploadRepository = selfFileUploadRepository;
     _selfEmployeeRepository   = selfEmployeeRepository;
 }
コード例 #7
0
 public FileUploadAppService(IFileUploadRepository repository, UserManager userManager)
     : base(repository)
 {
     _fileUploadrepository = repository;
     _userManager          = userManager;
 }
コード例 #8
0
 public FileUploadBusiness(IFileUploadRepository fileRepository)
 {
     _fileRepository = fileRepository;
 }
コード例 #9
0
 public UploadController(UserManager <ApplicationUser> userManager, IFileUploadRepository fileRepo)
 {
     this.userManager = userManager;
     this.fileRepo    = fileRepo;
 }
コード例 #10
0
 public FileUploadEngine(IFileUploadRepository fileImportRepo)
 {
     _fileImportRepo = fileImportRepo;
 }
コード例 #11
0
 public FileUploadController(ILogger <FileUploadController> logger, IFileUploadRepository imageUploadRepository, AppConfiguration appConfiguration)
 {
     _logger = logger;
     _imageUploadRepository = imageUploadRepository;
     _imageRelativeUrl      = appConfiguration.UserFileRelativeUrl;
 }
コード例 #12
0
 public FileUploadService(IFileUploadRepository fileUploadRepository, IUtils utils)
 {
     _fileUploadRepository = fileUploadRepository;
     _utils = utils;
 }
コード例 #13
0
 public FileUploadUnitOfWork(string connectionString, string migrationAssemblyName)
     : base(connectionString, migrationAssemblyName)
 {
     FileUploadRepository = new FileUploadRepository(_dbContext);
 }
コード例 #14
0
 /// <summary>
 /// This is to demonstrate the use of Inversion of Control by using Ninject to inject the classes that will be used upon
 /// the controller's Construction. By specifying the Interface, the developer can code against this interface, knowing that whatever will be passed in here,
 /// must implement the specific Interface.
 /// </summary>
 /// <param name="fileUpload"></param>
 public FileUploadController(IFileUploadRepository fileUpload)
 {
     m_FileUploadRepository = fileUpload;
 }