public ProfileViewModel(ISystemDispatcher dispatcher, [NotNull] AsyncDataProvider dataProvider, int id,
                         [NotNull] StatisticsService statistics,
                         [NotNull] IUserViewModelFactory userViewModelFactory, INavigationService navigation)
     : base(dispatcher)
 {
     if (dataProvider == null)
     {
         throw new ArgumentNullException("dataProvider");
     }
     if (statistics == null)
     {
         throw new ArgumentNullException("statistics");
     }
     if (userViewModelFactory == null)
     {
         throw new ArgumentNullException("userViewModelFactory");
     }
     _dataProvider         = dataProvider;
     _id                   = id;
     _statistics           = statistics;
     _userViewModelFactory = userViewModelFactory;
     _navigation           = navigation;
     _navigation.CleanNavigationStack();
     Initialize();
     _statistics.ReportProfilePageLoaded();
     SelectNewUserCommand = new RelayCommand(SelectNewUser);
 }
Exemple #2
0
 public IndividualController(IUserViewModelFactory userViewModelFactory,
                             IUserRegistrationService userRegistrationService,
                             SignInManager <IntegratorUser> signInManager)
 {
     this._userViewModelFactory    = userViewModelFactory;
     this._userRegistrationService = userRegistrationService;
     this._signInManager           = signInManager;
 }
 public AccountController(
     IAuthenticationService authenticationService,
     IUserViewModelFactory userDtoModelFactory,
     IAuthenticationManager authenticationManager)
 {
     this.authenticationService = authenticationService ?? throw new ArgumentNullException(nameof(authenticationService));
     this.userDtoModelFactory   = userDtoModelFactory ?? throw new ArgumentNullException(nameof(userDtoModelFactory));
     this.authenticationManager = authenticationManager ?? throw new ArgumentNullException(nameof(authenticationManager));
 }
 public MemebersController(
     IUserViewModelFactory userViewModelFactory,
     IAdministrationViewModelFactory administrationViewModelFactory,
     IUserRegistrationService userRegistrationService,
     SignInManager <IntegratorUser> signInManager
     )
 {
     this._userViewModelFactory           = userViewModelFactory;
     this._administrationViewModelFactory = administrationViewModelFactory;
     this._userRegistrationService        = userRegistrationService;
     this._signInManager = signInManager;
 }
Exemple #5
0
 public AuthenticationController(
     IUserViewModelFactory userViewModelFactory,
     IUserRegistrationService userRegistrationService,
     UserManager <IntegratorUser> userManager,
     SignInManager <IntegratorUser> signInManager,
     ICustomEmailSender emailSender
     )
 {
     this._userViewModelFactory    = userViewModelFactory;
     this._userRegistrationService = userRegistrationService;
     this._signInManager           = signInManager;
     this._userManager             = userManager;
     this._emailSender             = emailSender;
 }
        // private Task<IntegratorUser> GetCurrentUserAsync() => _userManager.GetUserAsync(User);

        #endregion

        #region Ctor
        public AuthenticationController(
            IUserViewModelFactory userViewModelFactory,
            SignInManager <IntegratorUser> signInManager,
            ILogger <LoginModel> logger,
            IUserRegistrationService userRegistrationService,
            IServiceProvider serviceProvider,
            UserManager <IntegratorUser> userManager,
            RoleManager <IntegratorRole> roleManager,
            IUserKnowledgeBaseService userIndustryService
            )
        {
            this._roleManager             = roleManager;
            this._userRegistrationService = userRegistrationService;
            this._userViewModelFactory    = userViewModelFactory;
            this._signInManager           = signInManager;
            this._logger              = logger;
            this._serviceProvider     = serviceProvider;
            this._userManager         = userManager;
            this._userIndustryService = userIndustryService;
        }
 public WindowService(IUserViewModelFactory userViewModelFactory,
                      IUserWindowFactory userWindowFactory)
 {
     _userViewModelFactory = userViewModelFactory;
     _userWindowFactory    = userWindowFactory;
 }
 public IndividualController(IUserViewModelFactory userViewModelFactory)
 {
     this._userViewModelFactory = userViewModelFactory;
 }