public AccountController(IIdentityService identityService, IEmailService emailService, ILogger <AccountController> logger, IRazorViewToString razorViewToString, IProfileService profileService) { _identityService = identityService ?? throw new ArgumentNullException(nameof(identityService)); _emailService = emailService ?? throw new ArgumentNullException(nameof(emailService)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _razorViewToString = razorViewToString ?? throw new ArgumentNullException(nameof(razorViewToString)); _profileService = profileService ?? throw new ArgumentNullException(nameof(profileService)); }
public AccountController( UserManager <ApplicationUser> userManager, SignInManager <ApplicationUser> signInManager, IEmailSender emailSender, ILoggerFactoryWrapper loggerFactoryWrapper, IRazorViewToString render, IMediator mediator) { _userManager = userManager; _signInManager = signInManager; _emailSender = emailSender; _logger = loggerFactoryWrapper.CreateLogger <AccountController>(); _razorViewToString = render; _mediator = mediator; }