예제 #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.cs 프로젝트: svnoori/app-crm
        AuthInfo()
        {
            _ConfigFetcher = DependencyService.Get <IConfigFetcher>();

            _Client = new MobileServiceClient(
                _ConfigFetcher.GetAsync("customerDataServiceUrl").Result,
                _ConfigFetcher.GetAsync("customerDataServiceAppKey", true).Result);
        }
예제 #5
0
파일: AuthInfo.cs 프로젝트: rsaggio/app-crm
        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);
        }