public void SignOut()
{
IsSigningIn = true;
try
{
ResetIdentityManager();
//// reset it to anonymous access if possible
//CurrentPortalService.Portal = await ArcGISPortal.CreateAsync(App.PortalUri.Uri);
CurrentPortalService.Portal = null;
CurrentPortalService.OrganizationName = CurrentPortalService.Portal != null ? CurrentPortalService.Portal.ArcGISPortalInfo.Name : "";
CurrentPortalService.UserName = "";
CurrentPortalService.Password = "";
CurrentPortalService.CurrentUser = null;
CurrentPortalService.OrganizationThumbnail = "";
CurrentPortalService.OrganizationBanner = "";
}
catch { }
//await InitializePortal();
IsSigningIn = false;
}