public async Task<MobileUser> Login(Core.Services.MobileServiceAuthenticationProvider provider)
		{
			_provider = provider;
			_currentActivity = Mvx.Resolve<IMvxAndroidCurrentTopActivity>();

			CurrentPlatform.Init();

			_client = new MobileServiceClient(
				"https://tekconfauth.azure-mobile.net/",
				"NeMPYjchPdsFKlUqDdyAJYZtdrOPiJ11");

			await Authenticate();
			return new MobileUser { Token = _user.MobileServiceAuthenticationToken, UserId = _user.UserId };
		}
Beispiel #2
0
        public async Task <MobileUser> Login(Core.Services.MobileServiceAuthenticationProvider provider)
        {
            _provider        = provider;
            _currentActivity = Mvx.Resolve <IMvxAndroidCurrentTopActivity>();

            CurrentPlatform.Init();

            _client = new MobileServiceClient(
                "https://tekconfauth.azure-mobile.net/",
                "NeMPYjchPdsFKlUqDdyAJYZtdrOPiJ11");

            await Authenticate();

            return(new MobileUser {
                Token = _user.MobileServiceAuthenticationToken, UserId = _user.UserId
            });
        }
Beispiel #3
0
 public static MobileServiceAuthenticationProvider AsMobileServiceProvider(this Core.Services.MobileServiceAuthenticationProvider provider)
 {
     return((MobileServiceAuthenticationProvider)((int)provider));
 }