Ejemplo n.º 1
0
 public LoginViewModel(
     ILoggerFacade logger,
     IStatusBar statusBar,
     IRegionManager regionManager,
     IEventAggregator eventAggregator,
     ISecurityServiceAsync securityService,
     UserContext userContext)
 {
     logger.Log("LoginViewModel.LoginViewModel()", Category.Debug, Priority.Low);
     _logger = logger;
     _statusBar = statusBar;
     _regionManager = regionManager;
     _eventAggregator = eventAggregator;
     _securityService = securityService;
     _securityService.AuthenticateUserCompleted += new EventHandler<AuthenticateUserCompletedEventArgs>(AuthenticateUserCallback);
     this.UserContext = userContext;
     LoginCommand = new DelegateCommand<object>(this.LoginExecute, this.CanLoginExecute);
     OpenAccountCommand = new DelegateCommand<object>(this.OpenAccountExecute);
     #if !SILVERLIGHT
     PasswordChangedCommand = new DelegateCommand<object>(this.PasswordChangedExecute);
     #endif
     this.PropertyChanged += this.OnPropertyChanged;
     this.ValidateAll();
 }
Ejemplo n.º 2
0
 public UsersController(Microsoft.AspNet.Identity.UserManager <User> userManager, ISecurityService securityService, ISecurityServiceAsync securityServiceAsync)
 {
     UserManager           = userManager;
     _securityService      = securityService;
     _securityServiceAsync = securityServiceAsync;
 }
Ejemplo n.º 3
0
 public SearchController(ISearchService searchService, ISecurityServiceAsync securityService)
 {
     _searchService   = searchService;
     _securityService = securityService;
 }