public EmployerService( IDeletableEntityRepository <Employer> employerRepository, IFileUploadService imageService) { this.employerRepository = employerRepository; this.imageService = imageService; }
/// <summary> /// 构造函数 /// </summary> /// <param name="fileStorageService"></param> /// <param name="fileUploadService"></param> /// <param name="filePathConfig"></param> public FileController(IFileStorageService fileStorageService, IFileUploadService fileUploadService, IOptions <FilePathConfig> filePathConfig) { _fileStorageService = fileStorageService; _fileUploadService = fileUploadService; _filePathConfig = filePathConfig.Value; }
public BarServices(CMContext context, IFileUploadService fileUploadService)//tested { _context = context ?? throw new MagicException(ExceptionMessages.ContextNull); _fileUploadService = fileUploadService ?? throw new MagicException(ExceptionMessages.IFileUploadServiceNull); }
public UpdateModel(MyRepository <Paquete> repository, INotyfService notyfService, IAppLogger <UpdateModel> logger, IFileUploadService fileUploadService) { _repository = repository; _notyfService = notyfService; _logger = logger; _fileUploadService = fileUploadService; }
public CvMessageService( IDeletableEntityRepository <CvMessage> cvмessageRepository, IFileUploadService fileUploadService) { this.cvмessageRepository = cvмessageRepository; this.fileUploadService = fileUploadService; }
public RegisterPageViewModel( INavigationService navigationService, IAppDataService appDataService, IPageDialogService pageDialogService, IEventAggregator eventAggregator, IFileUploadService fileUploadService ) { this.navigationService = navigationService; // ページ遷移に必要 this.appDataService = appDataService; // データの登録に必要 this.pageDialogService = pageDialogService; // アラートを出すために必要な人 this.eventAggregator = eventAggregator; // 登録完了イベントを発行するために必要 this.fileUploadService = fileUploadService; // ファイルをアップロードするために必要 // 登録ボタンが押された時のコマンドを定義 this.RegisterCommand = new DelegateCommand( executeMethod: async() => await this.RegisterAppDataAsync(), canExecuteMethod: () => !this.IsBusy && this.IsValidEnrtry() /* コマンドが実行可能のときに true を返す */ ) .ObservesProperty(propertyExpression: () => this.IsBusy); // IsBusyプロパティを監視し、IsBusyに変化があったら、CanExecuteChangedイベントを発行する // プロパティの値が変わった時の処理 this.RegisteringAppData.PropertyChanged += (sender, e) => { // コマンドが実行可能かどうか再度評価してください this.RegisterCommand.RaiseCanExecuteChanged(); }; }
public UploadFileController( IWebHostEnvironment _hostingEnvironment, IFileUploadService fileUploadService) { this.hostingEnvironment = _hostingEnvironment; _fileUploadService = fileUploadService; }
public FilmService(IGenericRepository <FilmModel> genericRepository, IFileUploadService fileUploadService, ISecurityService securityService) { _genericRepository = genericRepository; _fileUploadService = fileUploadService; _securityService = securityService; }
public ProductController(IProductRepository productRepository, IUserRepository userRepository, IFileUploadService fileUploadService, IMapper mapper) { _mapper = mapper; _productRepository = productRepository; _userRepository = userRepository; _fileUploadService = fileUploadService; }
public FileUploadController(IFileGroupService fileGroupService, IFileUploadService fileUploadService) { _fileGroupService = fileGroupService; _fileUploadService = fileUploadService; _uploadPath = UserLocalPath; _streamProvider = new MultipartFormDataStreamProvider(_uploadPath); }
public UserTasks( IInterestTasks interestTasks, IImageProcessor imageProcessor, IFileUploadService fileUploadService, IWebContentService webContentService, IFeedFinder feedFinder, IUserAuthentication userAuthentication, IConversationRepository conversationRepository, IEmailService emailService, ILocationService locationService, IUserRepository userRepository, IPageParsingService pageParsingService, IUserInterestTasks userInterestTasks) { _interestTasks = interestTasks; _imageProcessor = imageProcessor; _fileUploadService = fileUploadService; _webContentService = webContentService; _feedFinder = feedFinder; _userAuthentication = userAuthentication; _conversationRepository = conversationRepository; _emailService = emailService; _locationService = locationService; _userRepository = userRepository; _pageParsingService = pageParsingService; _userInterestTasks = userInterestTasks; }
public ScenarioController(IScenarioService scenarioService, IScenarioExecutionService executionService, IHatcheryService hatcheryService, IFileUploadService fileUploadService) { this.scenarioService = scenarioService; this.executionService = executionService; this.hatcheryService = hatcheryService; this.fileUploadService = fileUploadService; }
public FileUploadController( IFileUploadService ifileUploadService, IEntityBaseRepository <Error> _errorsRepository, IUnitOfWork _unitOfWork) : base(_errorsRepository, _unitOfWork) { _ifileUploadService = ifileUploadService; }
public MovieLibraryService(IMovieRepository movieRepository, IDirectorRepository directorRepository, ICategoryRepository categoryRepository, IMapper mapper, IFileUploadService fileUploadService) { _movieRepository = movieRepository; _directorRepository = directorRepository; _categoryRepository = categoryRepository; _mapper = mapper; _fileUploadService = fileUploadService; }
public GalleriesController() { _accountRepo = new AccountRepository(new AccountManageService(), new MailingService()); _fileUploadService = new FileUploadService(new FileSecurityValidator()); _galleryRepo = new GalleryRepository(new FileSecurityValidator(), _fileUploadService); _categoryRepo = new ContentCategoryRepository(new ContentCategoryManageService()); _signedUser = new Account(); }
public ProductController(IProductRepository productRepository, IUserRepository userRepository, IFileUploadService fileUploadService, IMapper mapper, IHubContext <MessageHub> messageHubService) { _mapper = mapper; _productRepository = productRepository; _userRepository = userRepository; _fileUploadService = fileUploadService; _messageHubService = messageHubService; }
public ForumController(IForumService service, IPrincipal principal, IFileUploadService fileService, IConfigSettingsService configServices, IProfanityService profService) { _service = service; _principal = principal; _fileService = fileService; _configServices = configServices; _profService = profService; }
/// <summary> /// Initializes a new instance of the <see cref="UploadController"/> class. /// </summary> public UploadController(ILogger <UploadController> logger, IImageService imageService, IFileUploadService fileUploadService, IAdminLogService adminLogService, IUploadTracker uploadTracker) { _logger = logger; _imageService = imageService; _fileUploadService = fileUploadService; _adminLogService = adminLogService; _uploadTracker = uploadTracker; }
public Form1(IFileUploadService fileUploadService, ICrudService crudService, ICalculationService calculationService, IViewService viewService) { this.fileUploadService = fileUploadService; this.crudService = crudService; this.calculationService = calculationService; this.viewService = viewService; InitializeComponent(); }
public HomeController(ILogger <HomeController> logger, IHttpMessageService httpMessage, IDbAdminUsersServiceProvider dbAdminUsersServiceProvider, IHttpService httpService, IFileUploadService fileUploadService, IRedisService redisService) { _logger = logger; _httpService = httpService; _httpMessage = httpMessage; _fileUploadService = fileUploadService; _redisService = redisService; _dbAdminUsersServiceProvider = dbAdminUsersServiceProvider; }
public FileUploadController( IFileUploadService fileUploadService , IMediator mediator , ILogger <FileUploadController> logger) { _fileUploadService = fileUploadService; _mediator = mediator; _logger = logger; }
public CreateModel(MyRepository <Paquete> repository, INotyfService iNotyfService, IFileUploadService fileUploadService, MyRepository <MunSV> repositoryMunicipio, MyRepository <DepSV> repositoryDepartamento, MyRepository <UserAddress> repositoryUserAddress) { _repository = repository; _INotyfService = iNotyfService; _fileUploadService = fileUploadService; _repositoryMunicipio = repositoryMunicipio; _repositoryDepartamento = repositoryDepartamento; _repositoryUserAddress = repositoryUserAddress; }
public FileUploadController( ILogger <FileUploadController> logger, IFileUploadService fileUploadService, UserInfo userInfo) : base(userInfo) { _logger = logger; _fileUploadService = fileUploadService; }
public FileController( IConfiguration Configuration, IHostingEnvironment env , IFileUploadService fileUploadService, IUploadImage upload ) : base(Configuration, env) { this._Env = env; this._upload = upload; this.fileUploadService = fileUploadService; }
// // GET: /FileUpload/ public ActionResult Index() { IFileUploadService fileUploadService = this.serviceFactory.FileUploadService; string folder = string.Format("{0}{1}/", Server.MapPath("~/"), Configuration.UploadsFolder); ICollection <FileInfo> files = fileUploadService.GetFiles(folder); return(View(files)); }
public MainModel(ILogger <HomeController> logger, INewsService newsService, IFileDownloadService downloadService, IFileUploadService uploadService, ISettingsService settingsService, IMenuService menuService) { _logger = logger; _newsService = newsService; _downloadService = downloadService; _uploadService = uploadService; _settingsService = settingsService; _menuService = menuService; }
public ScenarioController(IHierarchyService hierarchyService, IScenarioWebService scenarioWebService, IRecommendationProductService recommendationProductService, IFileUploadService fileUploadService, IOrganisationDataProvider organisationDataProvider) { _hierarchyService = hierarchyService; _scenarioWebService = scenarioWebService; _recommendationProductService = recommendationProductService; _fileUploadService = fileUploadService; _organisationDataProvider = organisationDataProvider; }
public SelfEvaluationAppService(ISelfEvaluationService selfEvaluationServiceBase, IFileUploadService fileUploadService, IObserverService observerService, IObservedService observedService, IAuthUserAppService authUserAppService) { _selfEvaluationService = selfEvaluationServiceBase; _selfFileUploadService = fileUploadService; _observerService = observerService; _observedService = observedService; _authUserAppService = authUserAppService; }
public IndexModel( UserManager <AppUser> userManager, SignInManager <AppUser> signInManager, IEmailSender emailSender, IFileUploadService fileUploadService, IToastNotification toast, IAppUserServices appUserServices) { _userManager = userManager; _signInManager = signInManager; _emailSender = emailSender; _fileUploadService = fileUploadService; _toast = toast; _appUserServices = appUserServices; }
public string GetFilePath(FileUploadInfo info) { string result = ""; IFileUploadService service = CreateSubClient(); ICommunicationObject comm = service as ICommunicationObject; comm.Using(client => { result = service.GetFilePath(info); }); return(result); }
public List <FileUploadInfo> GetByAttachGUID(string attachmentGUID) { List <FileUploadInfo> result = new List <FileUploadInfo>(); IFileUploadService service = CreateSubClient(); ICommunicationObject comm = service as ICommunicationObject; comm.Using(client => { result = service.GetByAttachGUID(attachmentGUID); }); return(result); }
public HatcheryService(IFileUploadService fileService, IScenarioExecutionRepository executionRepository) { this.fileService = fileService; this.executionRepository = executionRepository; }
public FileUploadManageController(IFileUploadService fileUploadService) { _fileUploadService = fileUploadService; }
public FileUploadController(IFileUploadService fileUploadService) { this.fileUploadService = fileUploadService; }
public ImageUploadService(IUserService userService, IDocumentSession session, IFileUploadService fileUploadService) { _userService = userService; _session = session; _fileUploadService = fileUploadService; }