Example #1
0
        protected BaseController(IUser user, IAppNotificationHandler <DomainNotification> errors)
        {
            Errors = errors;

            if (user.IsAuthenticated())
            {
                UserId = user.GetUserId();
            }
        }
Example #2
0
 public Handler(IUnitOfWork unitOfWork,
                IAppNotificationHandler appNotificationHandler,
                ITokenGenerator tokenGenerator,
                IPasswordHasher <AppUser> passwordHasher)
 {
     _unitOfWork             = unitOfWork;
     _appNotificationHandler = appNotificationHandler;
     _tokenGenerator         = tokenGenerator;
     _passwordHasher         = passwordHasher;
 }
Example #3
0
 public Handler(IUnitOfWork unitOfWork,
                IAppNotificationHandler appNotificationHandler,
                IDistributedCache distributedCache,
                IMapper mapper)
 {
     _unitOfWork             = unitOfWork;
     _appNotificationHandler = appNotificationHandler;
     _distributedCache       = distributedCache;
     _mapper = mapper;
 }
Example #4
0
 public AccountController(UserManager <ApplicationUser> userManager,
                          SignInManager <ApplicationUser> signInManager,
                          IEmailSender emailSender,
                          TokenDescriptor tokenDescriptor,
                          IUser user,
                          IAppNotificationHandler <DomainNotification> notification) : base(user, notification)
 {
     _userManager     = userManager;
     _signInManager   = signInManager;
     _emailSender     = emailSender;
     _tokenDescriptor = tokenDescriptor;
 }
Example #5
0
 public Handler(IUnitOfWork unitOfWork,
                IPasswordHasher <AppUser> passwordHasher,
                IAppNotificationHandler appNotificationHandler,
                IMapper mapper,
                IDistributedCache distributedCache)
 {
     _unitOfWork             = unitOfWork;
     _passwordHasher         = passwordHasher;
     _appNotificationHandler = appNotificationHandler;
     _mapper           = mapper;
     _distributedCache = distributedCache;
 }
Example #6
0
 public Handler(IUnitOfWork unitOfWork, IMapper mapper, IAppNotificationHandler appNotificationHandler)
 {
     _unitOfWork             = unitOfWork;
     _mapper                 = mapper;
     _appNotificationHandler = appNotificationHandler;
 }
Example #7
0
 public ValuesController(IUser user,
                         IAppNotificationHandler <DomainNotification> notification) : base(user, notification)
 {
 }
 public NotificationFilter(IAppNotificationHandler appNotificationHandler)
 {
     _appNotificationHandler = appNotificationHandler;
 }