public AccountController( UserManager <ApplicationUser> userManager, IJwtService jwtService, SignInManager <ApplicationUser> signInManager, IUserService userService, ISmtpService smtpService, IEmailSenderService emailService, RoleManager <ApplicationRole> roleManager, IIdentityService identityService, IOptions <FacebookAuthSettings> fbAuthSettingsAccessor ) { _serializerSettings = new JsonSerializerSettings { Formatting = Formatting.Indented }; this._userManager = userManager; this._jwtService = jwtService; this._userService = userService; this._signInManager = signInManager; this._smtpService = smtpService; this._emailService = emailService; this._identityService = identityService; this._fbAuthSettings = fbAuthSettingsAccessor.Value; _roleManager = roleManager; }
public PurchaseService(IMapper mapper, SFDbContext dbContext, ICustomerService customerService, IEmailSenderService emailSenderService) { _mapper = mapper; _DBContext = dbContext; _customerService = customerService; _emailSenderService = emailSenderService; }
public EmailTraceListener(string environment, string portalVersion, IEmailSenderService emailSender, IPortalSettings settings) { _portalVersion = portalVersion; _emailSender = emailSender; _settings = settings; Environment = environment; }
public CommunityGroupEmailService(EFDbContext context, IEmailSenderService emailSender , SphixConfiguration sphixConfiguration) { _unitOfWork = new UnitOfWork(context); _emailSender = emailSender; _sphixConfiguration = sphixConfiguration; }
public AccountController(IConfiguration config, IAccountService accountService, UserManager <User> userManager, IEmailSenderService emailSender) { this.config = config; this.accountService = accountService; this.userManager = userManager; this.emailSender = emailSender; }
public MusicZoneControllerActivator( string connectionString, IHttpContextAccessor accessor, EmailSettings emailSettings) { if (connectionString is null) { throw new ArgumentNullException(nameof(connectionString)); } if (accessor is null) { throw new ArgumentNullException(nameof(accessor)); } if (emailSettings is null) { throw new ArgumentNullException(nameof(emailSettings)); } this.connectionString = connectionString; this.accessor = accessor; this.emailSettings = emailSettings; // Singletons this.emailSender = new EmailSenderService(this.emailSettings); this.dateTimeProvider = new SystemDateTimeProvider(); this.cacheManager = new AspNetMemoryCacheManager( new MemoryCache( new MemoryCacheOptions())); }
public EmailNotificationService(NotificationContext context, IEmailSenderService emailSenderService, IMapper mapper, IOptionsMonitor <SenderConfig> senderConfig) { m_context = context; m_emailSenderService = emailSenderService; m_mapper = mapper; m_senderConfig = senderConfig.CurrentValue; }
public AccountController( IUserService userService, ISignInService signInService, IEmailSenderService emailSender, ILogger <AccountController> logger) { if (userService is null) { throw new ArgumentNullException(nameof(userService)); } if (signInService is null) { throw new ArgumentNullException(nameof(signInService)); } if (emailSender is null) { throw new ArgumentNullException(nameof(emailSender)); } this.userService = userService; this.signInService = signInService; this.emailSender = emailSender; this.logger = logger; }
public UserController(IUserService <IUserInfo> userService, IMapper mapper, IEmailSenderService emailSenderService) { this.userService = userService; this.mapper = mapper; this.emailSenderService = emailSenderService; }
public AccountController(UserManager <ApplicationUser> userManager, SignInManager <ApplicationUser> signInManager, IEmailSenderService emailSender, IHostingEnvironment env) { _userManager = userManager; _signInManager = signInManager; _emailSender = emailSender; _env = env; }
// // GET: / public HomeController(IPortalFrontendSettings settings, IUserAgentVerifier userAgentVerifier, IEmailSenderService emailSenderService) : base(settings) { _settings = settings; _userAgentVerifier = userAgentVerifier; _emailSenderService = emailSenderService; }
public EmailTraceListener(string environment, string portalVersion, IEmailSenderService emailSender, IPortalSettings settings) { _portalVersion = portalVersion; _emailSender = emailSender; _settings = settings; Environment = environment; }
public OpenHoursMailService(EFDbContext context, IEmailSenderService emailSender , SphixConfiguration sphixConfiguration) { _unitOfWork = new UnitOfWork(context); _emailSender = emailSender; _sphixConfiguration = sphixConfiguration; }
public UserService(HeroesDbContext context, IHashingManager hashingManager, IEmailSenderService emailSenderService, IJWTService jwtService) { _context = context; _hashingManager = hashingManager; _emailSenderService = emailSenderService; _jwtService = jwtService; }
public InviteService( IInviteRepository inviteRepository, IEmailSenderService emailSender) { _inviteRepository = inviteRepository; _emailSender = emailSender; }
public RequestController(IServiceProvider serviceProvider, IEmailSenderService emailSenderService, IConfiguration configuration) : base(serviceProvider) { this.emailSenderService = emailSenderService; this.configuration = configuration; }
public RegistrationPresenter( IRegisterView view, IRegistrationService registrationService, ISubjectManagementService subjectManagementService, IClassOfStudentsManagementService classOfStudentsManagementService, IAccountManagementService accountManagementSerivce, IEmailSenderService emailSender, IPasswordGeneratorService passwordService) : base(view) { Guard.WhenArgument(registrationService, "registrationService").IsNull().Throw(); Guard.WhenArgument(subjectManagementService, "subjectManagementService").IsNull().Throw(); Guard.WhenArgument(classOfStudentsManagementService, "classOfStudentsManagementService").IsNull().Throw(); Guard.WhenArgument(accountManagementSerivce, "accountManagementService").IsNull().Throw(); Guard.WhenArgument(emailSender, "emailSender").IsNull().Throw(); Guard.WhenArgument(passwordService, "passwordService").IsNull().Throw(); this.registrationService = registrationService; this.accountManagementSerivce = accountManagementSerivce; this.subjectManagementService = subjectManagementService; this.classOfStudentsManagementService = classOfStudentsManagementService; this.emailSender = emailSender; this.passwordService = passwordService; this.View.EventRegisterUser += this.RegisterUser; this.View.EventGetClassesOfStudents += this.View_EventGetClassesOfStudents; this.View.EventGetUserRoles += this.View_EventGetUserRoles; this.View.EventGetAvailableSubjects += this.View_EventGetAvailableSubjects; }
public Handler(DataContext context, IEmailSenderService sender, IJwtGeneratorService jwtGenerator, IConfiguration configuration) { _sender = sender; _jwtGenerator = jwtGenerator; _configuration = configuration; _context = context; }
/// <summary> /// The triage service /// </summary> /// <param name="activeSpintIssuesService">The issues information service.</param> /// <param name="tableItemsService">The table items service.</param> /// <param name="emailSenderService">The outlook email service.</param> /// <param name="triageService">The triage service.</param> public ReportsService(IActiveSpintIssuesService activeSpintIssuesService, ITableItemsService tableItemsService, IEmailSenderService emailSenderService, ITriageService triageService) { _activeSpintIssuesService = activeSpintIssuesService; _tableItemsService = tableItemsService; _emailSenderService = emailSenderService; _triageService = triageService; }
public CommonEmailsService(IEmailSenderService emailSenderService, IAuthRepo _authRepo, ICommonEmailsRepo CommonEmailsRepo, IConfiguration configuration) { _iEmailSenderService = emailSenderService; _ICommonEmailsRepo = CommonEmailsRepo; authRepo = _authRepo; _iconfiguration = configuration; }
// // GET: / public HomeController(IPortalFrontendSettings settings, IUserAgentVerifier userAgentVerifier, IEmailSenderService emailSenderService) : base(settings) { _settings = settings; _userAgentVerifier = userAgentVerifier; _emailSenderService = emailSenderService; }
public RequestService( IRepository <Request> requestRepository, IRepository <Book> bookRepository, IMapper mapper, IEmailSenderService emailSenderService, IRepository <User> userRepository, IPaginationService paginationService, IRepository <Language> bookLanguageRepository, IHangfireJobScheduleService hangfireJobScheduleService, IRepository <BookAuthor> bookAuthorRepository, IRepository <BookGenre> bookGenreRepository, IRepository <UserRoom> userLocationRepository, IRootRepository <BookRootComment> rootCommentRepository, IWishListService wishListService, INotificationsService notificationsService) { _requestRepository = requestRepository; _bookRepository = bookRepository; _mapper = mapper; _emailSenderService = emailSenderService; _userRepository = userRepository; _paginationService = paginationService; _hangfireJobScheduleService = hangfireJobScheduleService; _bookGenreRepository = bookGenreRepository; _bookLanguageRepository = bookLanguageRepository; _bookAuthorRepository = bookAuthorRepository; _userLocationRepository = userLocationRepository; _rootCommentRepository = rootCommentRepository; _wishListService = wishListService; _notificationsService = notificationsService; }
public ClienteController(ILogger <ClienteController> logger, IWebHostEnvironment webHostEnviroment, IClienteBusiness clienteBusiness, IEmailSenderService emailSenderService) { _logger = logger; _webHostEnvironment = webHostEnviroment; _clienteBusiness = clienteBusiness; _emailSenderService = emailSenderService; }
public VideoService(IEmailSenderService emailSenderService, IAuthService _authService, IVideoRepo videoRepository, IAuthRepo _authRepo, ICommonEmailsService ICommonEmailsService) { videoRepo = videoRepository; authRepo = _authRepo; authService = _authService; commonEmailsService = ICommonEmailsService; _iEmailSenderService = emailSenderService; }
public EmailConfirmationService(IUnitOfWork unitOfWork, IEmailSenderService emailService, JwtManager jwtManager) { _unitOfWork = unitOfWork; _emailSenderService = emailService; _jwtManager = jwtManager; _message = "Please, confirm your email by clicking the link.\n" + $"The link is valid for {_jwtManager.JwtOptions.AccessExpirationMins} minutes.\n"; }
public JobsService(IEmailSenderService emailSenderService, IAuthService _authService, IJobsRepo jobsRepo, IAuthRepo _authRepo, ICommonEmailsService ICommonEmailsService) { _jobsRepo = jobsRepo; authRepo = _authRepo; authService = _authService; commonEmailsService = ICommonEmailsService; _iEmailSenderService = emailSenderService; }
public AccountService(IConfiguration config, UserManager <User> userManager, RoleManager <IdentityRole> roleManager, IEmailSenderService emailSender, DbCtx ctx) { this.config = config; this.userManager = userManager; this.roleManager = roleManager; this.emailSender = emailSender; this.ctx = ctx; }
public AccountController( IUserService userService, UserManager <ApplicationUser> userManager, IEmailSenderService emailSenderService) { _emailSenderService = emailSenderService; _userService = userService; }
public ForgotPasswordService(EFDbContext context, IEmailSenderService emailSender , SphixConfiguration sphixConfiguration, IUserService userService) { _unitOfWork = new UnitOfWork(context); _sphixConfiguration = sphixConfiguration; _emailSender = emailSender; _userService = userService; }
public GuarantorService(DataContext context, IWebHostEnvironment environment, IEmailSenderService emailSenderService, IMemoryCache memoryCache) { _context = context; _environment = environment; _emailSenderService = emailSenderService; this.memoryCache = memoryCache; }
public SoftwareVaultService(IAsyncRepository <SoftwareVault> softwareVaultRepository, IAsyncRepository <SoftwareVaultInvitation> softwareVaultInvitationRepository, IEmailSenderService emailSenderService) { _softwareVaultRepository = softwareVaultRepository; _softwareVaultInvitationRepository = softwareVaultInvitationRepository; _emailSenderService = emailSenderService; }
public InfoSessionFollowUpService(IInfoSessionFollowUpRepository infoSessionFollowUpRepository, IEmailSenderService emailSenderService, IOrganizationsRepository organizationsRepository) { _infoSessionFollowUpRepository = infoSessionFollowUpRepository; _organizationsRepository = organizationsRepository; _emailSenderService = emailSenderService; }
public LogInData GenerateUserLoginData(User user, IEmailSenderService emailSender) { string userLogin = this.GenerateLogin(user), userPassword = this.GeneratePassword(), salt = this.CreateSalt(); string message = string.Format(Constants.EmailMessage + "\nЛогін: " + userLogin + "\nПароль: " + userPassword); emailSender.SendMail(user.Email, message); return new LogInData { Login = userLogin, PasswordSalt = salt, PasswordHash = this.CreateHashPassword(userPassword, salt) }; }
public ContactController(IEmailSenderService emailSenderService, IMappingEngine mapper) { if (emailSenderService == null) { throw new ArgumentNullException("emailSenderService"); } if (mapper == null) { throw new ArgumentNullException("mapper"); } _emailSenderService = emailSenderService; _mapper = mapper; }
public BlogPostController(IAddEntityCommand addEntityCommand, IBlogPostMapper blogPostMapper, IBlogPostControllerValidator validator, IEmailSenderService emailSenderService, IGetAllEntityQuery getAllEntityQuery, IBlogPostViewModelBuilder blogPostViewModelBuilder, IGetEntityByIdQuery getEntityByIdQuery) { this.addEntityCommand = addEntityCommand; this.blogPostMapper = blogPostMapper; this.validator = validator; this.emailSenderService = emailSenderService; this.getAllEntityQuery = getAllEntityQuery; this.blogPostViewModelBuilder = blogPostViewModelBuilder; this.getEntityByIdQuery = getEntityByIdQuery; }
public EmailNotificationService( IRepositoryFactory repositoryFactory, IEmailSenderService emailSenderService, IPortalFrontendSettings settings, IUserService userService, IProductIdExtractor productIdExtractor, IProjectUriProvider projectUriProvider, IUserUriProvider userUriProvider) { _emailSenderService = emailSenderService; _settings = settings; _productIdExtractor = productIdExtractor; _userService = userService; _projectUriProvider = projectUriProvider; _userUriProvider = userUriProvider; _emailRepository = repositoryFactory.Create<SendEmailEntity>(); }
public TraceListenersInitializer(IPortalSettings portalSettings, IEmailSenderService emailService) { _portalSettings = portalSettings; _emailService = emailService; }
public EmailController(IEmailSenderService emailSender, IPortalFrontendSettings settings) { _emailSender = emailSender; _settings = settings; }