public async Task LoadAsync()
{
Applications.Clear();
await _repository.LoadAsync(this).ConfigureAwait(false);
if (String.IsNullOrEmpty(Settings.ApplicationInformationServiceUrl))
{
Settings.SetDefaultService();
}
RegisterMeIfNotRegistered();
var httpClient = new HttpClient();
// アプリケーションの日本語名、説明と更新情報の URL はサービスから取得
var response = await httpClient.GetAsync(Settings.ApplicationInformationServiceUrl).ConfigureAwait(false);
if (response.StatusCode != HttpStatusCode.OK)
{
return;
}
var json = await response.Content.ReadAsStringAsync().ConfigureAwait(false);
_appInfo = JsonConvert.DeserializeObject<ApplicationJson>(json);
foreach (var application in Applications)
{
await application.InitializeAsync(_appInfo).ConfigureAwait(false);
}
}
private void RegisterMeIfNotRegistered()