Class InMemoryAchievementScreenshotStore
In-memory IAchievementScreenshotStore used for tests. Hands back the same
folder-shaped key the blob-backed store does, so assertions can check the key the unlock
record ends up carrying.
Inheritance
InMemoryAchievementScreenshotStore
Assembly: Tests.dll
Syntax
public class InMemoryAchievementScreenshotStore : IAchievementScreenshotStore
Constructors
InMemoryAchievementScreenshotStore()
Declaration
public InMemoryAchievementScreenshotStore()
Properties
DeleteAllCallCount
Declaration
public int DeleteAllCallCount { get; }
Property Value
SavedKeys
The keys written so far, in write order.
Declaration
public List<string> SavedKeys { get; }
Property Value
Methods
DeleteAllAsync(PlayerId, CancellationToken)
Declaration
public Task DeleteAllAsync(PlayerId player, CancellationToken cancellationToken)
Parameters
Returns
Read(string)
Reads back the bytes stored under a key, or null when nothing was stored for it.
Declaration
public byte[] Read(string key)
Parameters
Returns
SaveAsync(PlayerId, AchievementId, byte[], CancellationToken)
Declaration
public Task<string> SaveAsync(PlayerId player, AchievementId achievement, byte[] pngBytes, CancellationToken cancellationToken)
Parameters
Returns
Implements