public PasswordResetNotificationSender(IHttpContextAccessor context, UserManager <ApplicationUser> userManager, ISendEmailService emailSender) { this.userManager = userManager; this.emailSender = emailSender; request = context.HttpContext !.Request; }
public UserRepository(LiveContext liveContext, IMapper autoMapper, IJwtService jwtService, ISendEmailService emailService) { this._liveContext = liveContext; this._autoMapper = autoMapper; this._jwtService = jwtService; this._emailService = emailService; }
public Email(string subject, string content, Recipient recipient, ISendEmailService sendEmailService) { if (string.IsNullOrWhiteSpace(subject)) { throw new ArgumentException($"{nameof(subject)} is required!"); } if (string.IsNullOrWhiteSpace(content)) { throw new ArgumentException($"{nameof(content)} is required!"); } if (recipient is null) { throw new ArgumentException($"{nameof(recipient)} is required!"); } if (sendEmailService is null) { throw new ArgumentException($"{nameof(sendEmailService)} is required!"); } Id = Guid.NewGuid(); Subject = subject; Content = content; Recipient = recipient; _sendEmailService = sendEmailService; }
public ForgotPasswordService(UserManager <ApplicationUser> userManager, IGenerateAccountEmailsService accountEmailsService, ISendEmailService sendEmailService) { Status = new StatusGenericHandler(); _userManager = userManager; _accountEmailsService = accountEmailsService; _sendEmailService = sendEmailService; }
public ChangeEmailViewService(SharedOptions sharedOptions, IUserRepository userRepo, IUrlHelper urlHelper, ISendEmailService sendEmailService) { SharedOptions = sharedOptions ?? throw new ArgumentNullException(nameof(sharedOptions)); UserRepository = userRepo ?? throw new ArgumentNullException(nameof(userRepo)); UrlHelper = urlHelper ?? throw new ArgumentNullException(nameof(urlHelper)); SendEmailService = sendEmailService; }
public FormController(IBaseService baseService, IFormService formService, IFormControlService formControlService, IRoleService roleService, IGroupService groupService, ISendEmailService sendEmailService) : base(baseService) { _formService = formService; _formControlService = formControlService; _roleService = roleService; _groupService = groupService; _sendEmailService = sendEmailService; }
public MerchandiseController(IThePLeagueSupervisor supervisor, UserManager <ApplicationUser> userManager, CloudinaryService cloudinaryService, ISendEmailService emailService) { this._supervisor = supervisor; // this._logger = logger; this._userManager = userManager; this._cloudinary = cloudinaryService; this._emailService = emailService; }
public ContentFlagsController(IContentFlagService contentFlagService, IMemberProfileService memberProfileService, ISendEmailService sendEmailService, IAdminService adminService, ISmsService smsService) { _contentFlagService = contentFlagService; _memberProfileService = memberProfileService; _sendEmailService = sendEmailService; _adminService = adminService; _smsService = smsService; }
public MessageService(ISendEmailService sendEmailService) { if (sendEmailService == null) { throw new ArgumentNullException("sendEmailService"); } this.sendEmailService = sendEmailService; }
public void Setup() { _sendEmailServiceMock = new MockContext<ISendEmailService> (); _stringResource = new StringResourceMock(); _sendEmailService = new SendEmailServiceMock (_sendEmailServiceMock); _service = new EvaluationService (_stringResource, _sendEmailService); }
public SarUserService(Func <IAuthDbContext> dbFactory, IMemberInfoService memberService, IRolesService roles, ISendEmailService email, IConfigService config, ILogger log) { _memberService = memberService; _roles = roles; _dbFactory = dbFactory; _emailService = email; _config = config; _log = log.ForContext <SarUserService>(); }
public MemberProfilesController(IMemberProfileService memberProfileService, IMemberProfileVisitService memberProfileVisitService, ISmsService smsService, ISendEmailService sendEmailService, IAdminService adminService, IUserService userService) { _memberProfileService = memberProfileService; _memberProfileVisitService = memberProfileVisitService; _smsService = smsService; _sendEmailService = sendEmailService; _adminService = adminService; _userService = userService; }
/// <summary> /// Basic construstor to perform DI /// </summary> public AccountService(CustomerContext customerContext, IHttpContextAccessor context, SignInManager <ServiceUser> signInManager, UserManager <ServiceUser> userManager, ISendEmailService sendEmailService, IUrlHelper urlHelper, RoleManager <IdentityRole> roleManager) { SignInManager = signInManager; UserManager = userManager; SendEmailService = sendEmailService; UrlHelper = urlHelper; Context = context; RoleManager = roleManager; CustomerContext = customerContext; }
/// <summary> /// Basic construstor to perform DI /// </summary> /// <param name="signInManager"></param> /// <param name="userManager"></param> public AccountController(SignInManager <ServiceUser> signInManager, UserManager <ServiceUser> userManager, ISendEmailService sendEmailService, IDataProtectionProvider dataProtecttionProvider, IAccountService accountService, ILogger <AccountController> logger) { SignInManager = signInManager; UserManager = userManager; SendEmailService = sendEmailService; DataProtectionProvider = dataProtecttionProvider; Protector = DataProtectionProvider.CreateProtector("DataProtection"); AccountService = accountService; Logger = logger; }
/// <summary> /// Ctor to get all needed DI services /// </summary> public RegistrationService(CustomerContext customerContext, IUrlHelper urlHelper, IHttpContextAccessor httpContextAccessor, UserManager <ServiceUser> userManager, RoleManager <IdentityRole> roleManager, ISendEmailService sendEmailService, ILogger <RegistrationService> logger) { UserManager = userManager; RoleManager = roleManager; SendEmailService = sendEmailService; Context = httpContextAccessor; UrlHelper = urlHelper; CustomerContext = customerContext; Logger = logger; }
public AccountController(IMembershipService membershipService, IHubContext hubContext, ILog logger, ISendEmailService sendEmailService, IUserResourcesService userResourcesService, IDealService dealService) { _membershipService = membershipService; _appHub = hubContext; _logger = logger; _sendEmailService = sendEmailService; _userResourcesService = userResourcesService; _dealService = dealService; }
public ScheduleInstructorScanStatusCheck( IOptions <AppSettings> appSettings, ISendEmailService sendEmailService, ICalendarDaysPersistanceService calendarDayPersistanceService ) { _appSettings = appSettings; _sendEmailService = sendEmailService; _calendarDayPersistanceService = calendarDayPersistanceService; }
public UsersApiController(IUserService userService, IMemberProfileService memberProfileService, IAppTokenService appTokenService, ISendEmailService sendEmailService, IEmailConfirmationService emailConfirmationService, ISmsService smsService, IAdminService adminService) { _userService = userService; _memberProfileService = memberProfileService; _appTokenService = appTokenService; _sendEmailService = sendEmailService; _emailConfirmationService = emailConfirmationService; _smsService = smsService; _adminService = adminService; }
public StudentBusiness(IStudentRepository studentRepository, ISendEmailService sendEmailService, GenerateTokenService tokenService, IDisciplineBusiness disciplineBusiness) { _studentRepository = studentRepository; _emailSender = sendEmailService; _tokenService = tokenService; _disciplineBusiness = disciplineBusiness; _studentConverter = new StudentConverter(); _studentDisciplineConverter = new StudentDisciplineConverter(); _disciplineConverter = new DisciplineConverter(); _authStudentConverter = new AuthStudentConverter(); }
public HelpPageViewModel(ICurrentlySelectedFactory currentlySelectedFactory, ISendEmailService sendEmailService, IPlatformStuff platformStuff) : base(currentlySelectedFactory) { Title = "Help"; IsBusy = false; Version = platformStuff.GetVersion(); AppName = platformStuff.GetAppName(); this.sendEmailService = sendEmailService; EmailCommand = new Command(Email); AppDetailsCommand = new Command(LaunchWebsite); SelectedUser = currentlySelectedFactory.SelectedUser; }
//private readonly IUserRolesService _userRolesService; public UserController(IUserService userService, IPasswordService passwordService, IInviteService inviteservice, IOrganizationService organizationService, ISendEmailService sendEmailService) //, IUserRolesService userRolesService) { _userService = userService; _passwordService = passwordService; _inviteservice = inviteservice; _organizationService = organizationService; _sendEmailService = sendEmailService; //_userRolesService = userRolesService; }
public AppParameterAppService(IMapper mapper, IMediator bus, IAppParameterRepository appParameterRepository, IMongoEventRepository mongoEventRepository, IUser user, ISendEmailService sendEmailService) : base(mapper, appParameterRepository, mongoEventRepository, bus, user) { _appParameterRepository = appParameterRepository; _sendEmailService = sendEmailService; }
public RegisterAccountService(UserManager <ApplicationUser> userManager, ApplicationDbContext context, IErrorFactory errorFactory, IMapper mapper, ISendEmailService sendEmailService, IGenerateAccountEmailsService confirmationEmailService) { Status = new StatusGenericHandler(); _userManager = userManager; _context = context; _errorFactory = errorFactory; _mapper = mapper; _sendEmailService = sendEmailService; _confimationEmailService = confirmationEmailService; }
public static FifthweekUserManager CreateUserManager(ISendEmailService sendEmailService, IFifthweekDbConnectionFactory connectionFactory) { var userStore = new FifthweekUserStore(connectionFactory.CreateContext()); var dataProtectionProvider = IdentityConfig.FarmedMachineDataProtectionProvider ?? IdentityConfig.NonFarmedMachineDataProtectionProvider; var userManager = new FifthweekUserManager(userStore) { UserTokenProvider = new DataProtectorTokenProvider <FifthweekUser, Guid>(dataProtectionProvider.Create()), EmailService = new MessageService(sendEmailService) }; return(userManager); }
public ScheduledInstructorScanDurable( IOptions <AppSettings> appSettings, ICalendarDaysPersistanceService calendarDaysPersistanceService, IHtmlPageCreatorService htmlPageCreatorService, ISendEmailService sendEmailService ) { _appSettings = appSettings; _calendarDaysPersistanceService = calendarDaysPersistanceService; _htmlPageCreatorService = htmlPageCreatorService; _sendEmailService = sendEmailService; }
public LoginService( IUnitOfWork unitOfWork, ISendEmailService sendEmailService, IDataProtectorUserTokenService dataProtectorUserTokenService, IBysSession bysSession, IMessageService messageService) { _unitOfWork = unitOfWork; _sendEmailService = sendEmailService; _dataProtectorUserTokenService = dataProtectorUserTokenService; _bysSession = bysSession; _messageService = messageService; }
public BusinessService(ILogger <BusinessService> logger, IDataAccessService dataAccessService, ISendEmailService mailService, IJsonService jsonService, IDataService dataService, IXmlService xmlService) { _logger = logger; _xmlService = xmlService; _jsonService = jsonService; _dataService = dataService; _mailService = mailService; _dataAccessService = dataAccessService; }
public UserService(UserManager <User> userManager, SignInManager <User> signInManager, ISendEmailService emailService, IJwtService jwtService, ApplicationDBContext db, IMapper mapper) { this.userManager = userManager; this.signInManager = signInManager; this.emailService = emailService; this.jwtService = jwtService; this.db = db; this.mapper = mapper; }
public CloseAccountViewService( IUserRepository userRepository, IRegistrationBusinessLogic registrationBusinessLogic, IOrganisationBusinessLogic organisationBusinessLogic, ILogger <CloseAccountViewService> logger, ISendEmailService sendEmailService, ISharedBusinessLogic sharedBusinessLogic) { UserRepository = userRepository ?? throw new ArgumentNullException(nameof(userRepository)); RegistrationBusinessLogic = registrationBusinessLogic ?? throw new ArgumentNullException(nameof(registrationBusinessLogic)); _organisationBusinessLogic = organisationBusinessLogic; Logger = logger; SendEmailService = sendEmailService; }
public SessionController( IHealthyNutGuysSupervisor supervisor, IJwtFactory jwtFactory, IOptions <JwtIssuerOptions> jwtOptions, UserManager <ApplicationUser> userManager, GetIdentity getIdentity, ISendEmailService emailSrvice) { this._supervisor = supervisor; this._jwtFactory = jwtFactory; this._userManager = userManager; this._jwtOptions = jwtOptions.Value; this._getIdentity = getIdentity; this._emailService = emailSrvice; }
public AccountController( UserManager <ApplicationUser> userManager, IJwtService jwtService, IGenerateResreshTokenService generateResreshTokenService, IDecryptService decryptService, IEncryptService encryptService, ISendEmailService sendEmailService, RoleManager <ApplicationRole> roleManager) { this.userManager = userManager; this.jwtService = jwtService; this.generateResreshTokenService = generateResreshTokenService; this.decryptService = decryptService; this.encryptService = encryptService; this.sendEmailService = sendEmailService; this.roleManager = roleManager; }
public EvaluationService(IStringResource resource, ISendEmailService sendEmailService) { _resource = resource; _sendEmailService = sendEmailService; }