Beispiel #1
0
 public MainHub(IUserConnectionStorage userConnectionStorage, PhoneService phoneService, IUnitOfWork unitOfWork, IEmailIgnoreNotifierManger emailIgnoreNotifierManger)
 {
     _userConnectionStorage     = userConnectionStorage.ValidateNotDefault(nameof(userConnectionStorage));
     _phoneService              = phoneService.ValidateNotDefault(nameof(phoneService));
     _unitOfWork                = unitOfWork.ValidateNotDefault(nameof(unitOfWork));
     _emailIgnoreNotifierManger = emailIgnoreNotifierManger.ValidateNotDefault(nameof(emailIgnoreNotifierManger));
 }
Beispiel #2
0
 public AccountController(
     IUserManager userManager,
     IEncryptionService encryptionService,
     IUserConnectionStorage userConnectionStorage,
     IEmailIgnoreNotifierManger emailIgnoreNotifier,
     IUnitOfWork unitOfWork)
     : base(unitOfWork)
 {
     _emailIgnoreNotifier   = emailIgnoreNotifier;
     _userManager           = userManager.ValidateNotDefault(nameof(userManager));
     _encryptionService     = encryptionService.ValidateNotDefault(nameof(encryptionService));
     _userConnectionStorage = userConnectionStorage.ValidateNotDefault(nameof(userConnectionStorage));
 }