Пример #1
0
        private async Task GetConfigAsync()
        {
            if (_azureAuthenticationClientId == null)
            {
                _azureAuthenticationClientId =
                    await _configFetcher.GetAsync("azureActiveDirectoryAuthenticationClientId", true);
            }

            if (_azureGraphApiClientId == null)
            {
                _azureGraphApiClientId = await _configFetcher.GetAsync("azureActiveDirectoryGraphApiClientId", true);
            }

            if (_tenantAuthority == null)
            {
                _tenantAuthority = await _configFetcher.GetAsync("azureActiveDirectoryAuthenticationTenantAuthorityUrl");
            }

            if (_returnUri == null)
            {
                _returnUri = await _configFetcher.GetAsync("azureActiveDirectoryAuthenticationReturnUri");
            }

            if (_resourceUri == null)
            {
                _resourceUri = await _configFetcher.GetAsync("azureActiveDirectoryAuthenticationResourceUri");
            }
        }
Пример #2
0
        public CatalogDataClient()
        {
            _ConfigFetcher = DependencyService.Get <IConfigFetcher>();

            _ApiServiceUrl = _ConfigFetcher.GetAsync("catalogDataServiceUrl").Result;
            _ApiAppKey     = _ConfigFetcher.GetAsync("catalogDataServiceAppKey", true).Result;
        }
Пример #3
0
        public CatalogDataClient()
        {
            _ConfigFetcher = DependencyService.Get<IConfigFetcher>();

            _ApiServiceUrl = _ConfigFetcher.GetAsync("catalogDataServiceUrl").Result;
            _ApiAppKey = _ConfigFetcher.GetAsync("catalogDataServiceAppKey", true).Result;
        }
Пример #4
0
        AuthInfo()
        {
            _ConfigFetcher = DependencyService.Get <IConfigFetcher>();

            _Client = new MobileServiceClient(
                _ConfigFetcher.GetAsync("customerDataServiceUrl").Result,
                _ConfigFetcher.GetAsync("customerDataServiceAppKey", true).Result);
        }
Пример #5
0
        AuthInfo()
        {
            _ConfigFetcher = DependencyService.Get<IConfigFetcher>();

            _Client = new MobileServiceClient(
                _ConfigFetcher.GetAsync("customerDataServiceUrl").Result,
                _ConfigFetcher.GetAsync("customerDataServiceAppKey", true).Result);
        }
Пример #6
0
        private MobileDataSync()
        {
            _ConfigFetcher = DependencyService.Get<IConfigFetcher>();

            var serviceUrl = _ConfigFetcher.GetAsync("dataServiceUrl").Result;
            var serviceAppKey = _ConfigFetcher.GetAsync("dataServiceAppKey", true).Result;

            _Client = new MobileServiceClient(serviceUrl, serviceAppKey);
        }
Пример #7
0
        private MobileDataSync()
        {
            _ConfigFetcher = DependencyService.Get <IConfigFetcher>();

            var serviceUrl    = _ConfigFetcher.GetAsync("dataServiceUrl").Result;
            var serviceAppKey = _ConfigFetcher.GetAsync("dataServiceAppKey", true).Result;

            _Client = new MobileServiceClient(serviceUrl, serviceAppKey);
        }
        public AuthenticationService()
        {
            _ConfigFetcher = DependencyService.Get<IConfigFetcher>();

            _Authenticator = DependencyService.Get<IAuthenticator>();

            _ClientId = _ConfigFetcher.GetAsync("azureActiveDirectoryAuthenticationClientId", true).Result;
            _TenantAuthority = _ConfigFetcher.GetAsync("azureActiveDirectoryAuthenticationTenantAuthorityUrl").Result;
            _ReturnUri = _ConfigFetcher.GetAsync("azureActiveDirectoryAuthenticationReturnUri").Result;
            _ResourceUri = _ConfigFetcher.GetAsync("azureActiveDirectoryAuthenticationResourceUri").Result;
        }
Пример #9
0
        public AuthenticationService()
        {
            _ConfigFetcher = DependencyService.Get <IConfigFetcher>();

            _Authenticator = DependencyService.Get <IAuthenticator>();

            _ClientId        = _ConfigFetcher.GetAsync("azureActiveDirectoryAuthenticationClientId", true).Result;
            _TenantAuthority = _ConfigFetcher.GetAsync("azureActiveDirectoryAuthenticationTenantAuthorityUrl").Result;
            _ReturnUri       = _ConfigFetcher.GetAsync("azureActiveDirectoryAuthenticationReturnUri").Result;
            _ResourceUri     = _ConfigFetcher.GetAsync("azureActiveDirectoryAuthenticationResourceUri").Result;
        }
Пример #10
0
        private async void InitialTasks()
        {
            AppConfig = await _configFetcher.GetAsync();

            AppConfig.ApplicationVersion = DependencyService.Get <IAppVersionProvider>().Version;
            GetImageSizes(AppConfig);
            await GetConnectionInfoAsync();
            await InitAsync();

            SetBarColor();
        }
Пример #11
0
        public async Task LoadDemoCredentials()
        {
            Username = await _ConfigFetcher.GetAsync("azureActiveDirectoryUsername", true);

            Password = await _ConfigFetcher.GetAsync("azureActiveDirectoryPassword", true);
        }