Skip to content

Commit

Permalink
[MTGOSDK/API] Client: Expose method to clear client caches
Browse files Browse the repository at this point in the history
  • Loading branch information
Qonfused committed Dec 25, 2023
1 parent 3dfcfad commit 238a010
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions MTGOSDK/src/API/Client.cs
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,14 @@ public Client(ClientOptions options = default) : base(
WindowUtilities.CloseDialogs();
}

/// <summary>
/// Cleans up any cached remote objects pinning objects in client memory.
/// </summary>
public void ClearCaches()
{
UserManager.Users.Clear();
}

/// <summary>
/// Disposes of the remote client handle.
/// </summary>
Expand Down

0 comments on commit 238a010

Please sign in to comment.