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(); }
public UsersController(Microsoft.AspNet.Identity.UserManager <User> userManager, ISecurityService securityService, ISecurityServiceAsync securityServiceAsync) { UserManager = userManager; _securityService = securityService; _securityServiceAsync = securityServiceAsync; }
public SearchController(ISearchService searchService, ISecurityServiceAsync securityService) { _searchService = searchService; _securityService = securityService; }