public LoginViewModel(IUiAuthenticationService uiAuthenticationService, IUserStateListener userStateListener) { _loadingMessage = string.Empty; _uiAuthenticationService = uiAuthenticationService; _userStateListener = userStateListener; _signInCommand = new DelegateCommand(OnSignIn); _emailAddress = "dev"; _password = "******"; }
public VsWorkStarter(IUserStateService userStateService, IUiAuthenticationService authenticationService, IDteTrigger dtetrigger) { _authenticationService = authenticationService; _dtetrigger = dtetrigger; _userStateService = userStateService; _dtetrigger = dtetrigger; _dtetrigger.OnDteTrigger += OnDteTrigger; _userStateService.QueryUserStatusCompleted += HandleQueryUserStatusCompleted; }
public RoomStateViewModel(IUiRoomService roomService, IUiAuthenticationService authenticationService) { _roomService = roomService; _authenticationService = authenticationService; _poller = new Timer(PollUserStates); UserStates = new ObservableCollection <UserStateInfoViewModel>(); _context = SynchronizationContext.Current; roomService.JoinRoomCompleted += HandleJoinRoomCompleted; }
public LoginViewModel(IUiAuthenticationService uiAuthenticationService) { _inputEnabled = true; _loadingMessage = string.Empty; _uiAuthenticationService = uiAuthenticationService; _signInCommand = new DelegateCommand(OnSignIn); //_quickLoginUsername = "******"; //_emailAddress = "dev"; //_password = "******"; }
public TeamTimeWarp_VsPackagePackage() { _restServiceUriFactory = new RestServiceUriFactory(); _tokenStore = new TokenStore(); _tokenPersister = new TokenPersister(); _authenticationService = new AuthenticationService(_tokenStore, _restServiceUriFactory, _tokenPersister, new SynchronizationContext()); _userStateService = new UserStateService(_tokenStore, _restServiceUriFactory, new AgentTypeProvider(TimeWarpAgent.VisualStudio)); }
public VsLoginViewModel(IUiAuthenticationService uiAuthenticationService) { if (uiAuthenticationService == null) { throw new ArgumentNullException("uiAuthenticationService"); } _inputEnabled = true; _loadingMessage = string.Empty; _uiAuthenticationService = uiAuthenticationService; _signInCommand = new DelegateCommand(OnSignIn); }
public MainWindowViewModel(IUiAuthenticationService authenticationService, IUserStateListener userStateListener, IUiRoomService roomService, IUiGlobalRoomsService globalRoomsService) { _authenticationService = authenticationService; _loginViewModel = new LoginViewModel(authenticationService, userStateListener); _roomNavigationViewModel = new RoomNavigationViewModel(roomService, globalRoomsService); LoginVisibility = Visibility.Visible; RoomNavigationVisiblity = Visibility.Collapsed; _authenticationService.LoginCompleted += HandleLoginCompleted; }
public MainWindowViewModel(IUiAuthenticationService authenticationService, IUiRoomService roomService, IUiGlobalRoomsService globalRoomsService, IUserStateService userStateService, IUiUserMessageService uiUserMessageService) { _authenticationService = authenticationService; _roomService = roomService; _loginViewModel = new LoginViewModel(authenticationService); _roomNavigationViewModel = new RoomNavigationViewModel(roomService, globalRoomsService); _roomStateViewModel = new RoomStateViewModel(_roomService, authenticationService, uiUserMessageService); _startStopViewModel = new StartStopViewModel(userStateService); ShowLogin(); _authenticationService.LoginCompleted += HandleLoginCompleted; }