public LoginViewModel(IUiAuthenticationService uiAuthenticationService, IUserStateListener userStateListener)
 {
     _loadingMessage          = string.Empty;
     _uiAuthenticationService = uiAuthenticationService;
     _userStateListener       = userStateListener;
     _signInCommand           = new DelegateCommand(OnSignIn);
     _emailAddress            = "dev";
     _password = "******";
 }
Beispiel #2
0
        public VsWorkStarter(IUserStateService userStateService, IUiAuthenticationService authenticationService, IDteTrigger dtetrigger)
        {
            _authenticationService = authenticationService;
            _dtetrigger            = dtetrigger;
            _userStateService      = userStateService;

            _dtetrigger = dtetrigger;
            _dtetrigger.OnDteTrigger += OnDteTrigger;
            _userStateService.QueryUserStatusCompleted += HandleQueryUserStatusCompleted;
        }
Beispiel #3
0
        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 = "******";
 }
Beispiel #5
0
        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);
        }
Beispiel #7
0
        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;
        }