Ejemplo n.º 1
0
        public TpOtherControllerImpl(IMapper mapper,
                                     IHttpContextAccessor httpContextAccessor,
                                     IOptions <MailConfigOptions> optionsAccessorMail,
                                     IOptions <SlackConfigOptions> optionsAccessorSlack,
                                     ISendMail mailClient,
                                     ISlackClient slackClient,
                                     IUnitOfWork unitOfWork)
        {
            _mapper = mapper;
            _httpContextAccessor = httpContextAccessor;
            _mailConfigOptions   = optionsAccessorMail.Value;
            _slackConfigOptions  = optionsAccessorSlack.Value;
            _mailClient          = mailClient;
            _slackClient         = slackClient;
            _unitOfWork          = unitOfWork;

            new JsonSerializerSettings
            {
                Formatting = Formatting.Indented
            };
        }
Ejemplo n.º 2
0
        public TpUserControllerImpl(IMapper mapper,
                                    AppUser appUser,
                                    UserManager <AppUser> userManager,
                                    AppUserManager appUserManager,
                                    IHttpContextAccessor httpContextAccessor,
                                    IOptions <MailConfigOptions> optionsAccessorMail,
                                    ISendMail mailClient,
                                    IUnitOfWork unitOfWork)
        {
            _mapper              = mapper;
            _appUser             = appUser;
            _userManager         = userManager;
            _appUserManager      = appUserManager;
            _httpContextAccessor = httpContextAccessor;
            _mailConfigOptions   = optionsAccessorMail.Value;
            _mailClient          = mailClient;
            _unitOfWork          = unitOfWork;

            new JsonSerializerSettings
            {
                Formatting = Formatting.Indented
            };
        }