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"); } }
public CatalogDataClient() { _ConfigFetcher = DependencyService.Get <IConfigFetcher>(); _ApiServiceUrl = _ConfigFetcher.GetAsync("catalogDataServiceUrl").Result; _ApiAppKey = _ConfigFetcher.GetAsync("catalogDataServiceAppKey", true).Result; }
public CatalogDataClient() { _ConfigFetcher = DependencyService.Get<IConfigFetcher>(); _ApiServiceUrl = _ConfigFetcher.GetAsync("catalogDataServiceUrl").Result; _ApiAppKey = _ConfigFetcher.GetAsync("catalogDataServiceAppKey", true).Result; }
AuthInfo() { _ConfigFetcher = DependencyService.Get <IConfigFetcher>(); _Client = new MobileServiceClient( _ConfigFetcher.GetAsync("customerDataServiceUrl").Result, _ConfigFetcher.GetAsync("customerDataServiceAppKey", true).Result); }
AuthInfo() { _ConfigFetcher = DependencyService.Get<IConfigFetcher>(); _Client = new MobileServiceClient( _ConfigFetcher.GetAsync("customerDataServiceUrl").Result, _ConfigFetcher.GetAsync("customerDataServiceAppKey", true).Result); }
private MobileDataSync() { _ConfigFetcher = DependencyService.Get<IConfigFetcher>(); var serviceUrl = _ConfigFetcher.GetAsync("dataServiceUrl").Result; var serviceAppKey = _ConfigFetcher.GetAsync("dataServiceAppKey", true).Result; _Client = new MobileServiceClient(serviceUrl, serviceAppKey); }
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; }
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; }
private async void InitialTasks() { AppConfig = await _configFetcher.GetAsync(); AppConfig.ApplicationVersion = DependencyService.Get <IAppVersionProvider>().Version; GetImageSizes(AppConfig); await GetConnectionInfoAsync(); await InitAsync(); SetBarColor(); }
public async Task LoadDemoCredentials() { Username = await _ConfigFetcher.GetAsync("azureActiveDirectoryUsername", true); Password = await _ConfigFetcher.GetAsync("azureActiveDirectoryPassword", true); }