Example #1
0
        public AuthViewModel(IESigAuthService authService)
        {
            // TODO: set configuration error message.
            if (null == authService)
            {
                IsAuth = false;
                return;
            }

            // authenticate user via service.
            //IsAuth = authService.AuthenticateUser();
        }
 public BarcodeScanViewModel(IESigAuthService authService)
 {
     _authService = authService;
 }
Example #3
0
 public MainViewModel(IESigAuthService authService)
 {
     // TODO, get user and pass in User type to the auth Service for authenticaiton.
     _authService = authService;
 }
Example #4
0
 public MainViewModel(IESigAuthService authService)
 {
     _authService = authService;
 }
Example #5
0
        // KEEP becasue hope is we can move our register work and get to use only this constructor
        //public LoginViewModel(IESigAuthService authService)
        //{
        //    _authService = authService;
        //}

        // TODO: Get this class to the point where the constructor does NOT need registerService.
        //  all the register work should happen in the RegisterViewModel, so we should be able to
        // slowly move it out of this class.
        public LoginViewModel(IESigAuthService authService, IRegistrerDeviceService registerService)
        {
            // TODO, get user and pass in User type to the auth Service for authenticaiton.
            _authService     = authService;
            _registerService = registerService;
        }