public async Task<bool> SignIn()
{
IsSigningIn = true;
try
{
bool b = await SignInUsingIdentityManager();
if (b)
{
Portal = await ArcGISPortal.CreateAsync(App.PortalUri.Uri); //, CancellationToken.None, ((TokenCredential)_credential).Token);
if (Portal != null)
CurrentUser = await ArcGISPortalUser.CreateAsync(Portal, ((TokenCredential)_credential).UserName);
SetOrganizationProperties();
IsSigningIn = false;
return true;
}
}
catch (Exception ex)
{
IsSigningIn = false;
var _ = App.ShowExceptionDialog(ex);
}
IsSigningIn = false;
return false;
}