Пример #1
0
 public AccountService(
     SignInManager <ApplicationUser> signInManager,
     IAccountsUseCase accountsUseCase,
     IAuthorizationUseCase authorizationUseCase)
 {
     this.signInManager        = signInManager;
     this.accountsUseCase      = accountsUseCase;
     this.authorizationUseCase = authorizationUseCase;
 }
Пример #2
0
 public AccountsController(
     IAccountsUseCase accountsUseCase,
     IAuthorizationUseCase authorizationUseCase,
     UserManager <ApplicationUser> userManager,
     SignInManager <ApplicationUser> signInManager,
     ILoggerFactory loggerFactory,
     IOptions <UrlSettings> optionsAccessor)
 {
     this.accountsUseCase      = accountsUseCase;
     this.authorizationUseCase = authorizationUseCase;
     this.userManager          = userManager;
     this.logger         = loggerFactory.CreateLogger <AccountsController>();
     this.signInManager  = signInManager;
     this.Options        = optionsAccessor.Value;
     this.accountService = new AccountService(
         this.signInManager,
         accountsUseCase,
         authorizationUseCase);
 }