Ejemplo n.º 1
0
 /// <summary>
 /// Signs out. This will delete any existing access and refresh tokens. It will also clear
 /// the cache (asynchronously).
 /// </summary>
 public void SignOut()
 {
     if (!instance.IsAuthenticationSupported)
     {
         return;
     }
     oauth2Identity.Logout();
     // When signing out, we should clear the cache too since the cache might have data that
     // belongs to the signed-in user.
     PolyApi.ClearCache();
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Clears all caches (downloads and thumbnails).
 /// </summary>
 public void ClearCaches()
 {
     PolyApi.ClearCache();
     thumbnailCache.Clear();
 }