コード例 #1
0
        public AuthenticationService(IPlatformAuthenticator authenticator, IMobileServiceClient mobileService, IDataService dataService)
        {
            _authenticator = authenticator;
            _mobileService = mobileService;
            _dataService   = dataService;

            _accountStore = AccountStore.Create();
        }
コード例 #2
0
        public AuthenticationService(IPlatformAuthenticator authenticator, AccountStore accountStore, IMobileServiceClient mobileService, IDataService dataService, ISettingsService settingService)
        {
            _authenticator   = authenticator;
            _mobileService   = mobileService;
            _dataService     = dataService;
            _settingsService = settingService;

            // can't use AccountStore.Create() for UWP
            _accountStore = accountStore;
        }