public AccountController(
     SignInManager <IdentityUser> signInManager,
     UserManager <IdentityUser> userManager,
     IOptions <AppSettings> appSettings,
     ITouristSpotAppService touristSpotAppService)
     : base()
 {
     this._userManager          = userManager;
     this._signInManager        = signInManager;
     this._appSettings          = appSettings.Value;
     this.touristSpotAppService = touristSpotAppService;
 }
예제 #2
0
        /// <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>();
        }