public UserAppService( IRepository <User, long> repository, UserManager userManager, RoleManager roleManager, IRepository <Role> roleRepository, IPasswordHasher <User> passwordHasher, IAbpSession abpSession, LogInManager logInManager, IPictureAppService pictureAppService, IEmailSender emailSender, IRepository <UserRole, long> _userRoleRepository ) : base(repository) { _userManager = userManager; _roleManager = roleManager; _roleRepository = roleRepository; _passwordHasher = passwordHasher; _abpSession = abpSession; _logInManager = logInManager; this.pictureAppService = pictureAppService; this.emailSender = emailSender; this.repository = repository; this._userRoleRepository = _userRoleRepository; }
/// <summary> /// Initializes a new instance of the <see cref="TouristSpotAppService"/> class. /// Construtor padrão de <see cref="TouristSpotAppService"/>. /// </summary> /// <param name="uow"> /// Contrato do Unit of Work. Veja <see cref="IUnitOfWork"/>. /// </param> /// <param name="mapper"> /// Contrato do AutoMapper. Veja <see cref="IMapper"/>. /// </param> /// <param name="repository"> /// O repositório da entidade TouristSpot. Veja <see cref="ITouristSpotRepository"/>. /// </param> public TouristSpotAppService( IUnitOfWork uow, IMapper mapper, ITouristSpotRepository repository, IPictureAppService pictureAppService) : base(uow, mapper, repository) { this.pictureAppService = pictureAppService; }
public PictureController(IHostingEnvironment hostingEnvironment, IDownloadService downloadService, INopFileProvider fileProvider, IPictureAppService pictureAppService) { this.hostingEnvironment = hostingEnvironment; this.downloadService = downloadService; this.fileProvider = fileProvider; this.pictureAppService = pictureAppService; }
/// <summary> /// Initializes a new instance of the <see cref="TouristSpotController"/> class. /// Contrutor padrão do TouristSpotController. /// </summary> /// <param name="appService">Application de serviço</param> /// <param name="loggerFactory">Factory de gerenciamento de logs</param> public TouristSpotController( ITouristSpotAppService appService, ICommentAppService commentAppService, IFavoriteAppService favoriteAppService, IPictureAppService pictureAppService, IVoteAppService voteAppService, ILoggerFactory loggerFactory) : base(appService) { this.appService = appService; this.commentAppService = commentAppService; this.favoriteAppService = favoriteAppService; this.pictureAppService = pictureAppService; this.voteAppService = voteAppService; this.logger = loggerFactory.CreateLogger <TouristSpotController>(); }
public HomeController(IPictureAppService pictureAppService) { _pictureAppService = pictureAppService; }
public HomeController(IPictureAppService pictureAppService, IReviewAppService reviewAppService) { _pictureAppService = pictureAppService; _reviewAppService = reviewAppService; }