Class AIRequestHistoryFile
Default local file store. Compatible with former behavior.
public sealed class AIRequestHistoryFile
- Inheritance
-
objectAIRequestHistoryFile
Methods
ClearAsync(CancellationToken)
public UniTask ClearAsync(CancellationToken ct = default)
Parameters
ctCancellationToken
Returns
- UniTask
CreateSnapshotAsync(IReadOnlyList<AIRequestRecord>, CancellationToken)
public UniTask<string> CreateSnapshotAsync(IReadOnlyList<AIRequestRecord> records, CancellationToken ct = default)
Parameters
recordsIReadOnlyList<AIRequestRecord>ctCancellationToken
Returns
- UniTask<string>
GetDefaultJSONPath()
public static string GetDefaultJSONPath()
Returns
- string
ListSnapshotsAsync(CancellationToken)
public UniTask<List<AIRequestHistorySnapshot>> ListSnapshotsAsync(CancellationToken ct = default)
Parameters
ctCancellationToken
Returns
- UniTask<List<AIRequestHistorySnapshot>>
LoadAsync(CancellationToken)
public UniTask<IReadOnlyList<AIRequestRecord>> LoadAsync(CancellationToken ct = default)
Parameters
ctCancellationToken
Returns
- UniTask<IReadOnlyList<AIRequestRecord>>
RestoreFromSnapshotAsync(DateTime, CancellationToken)
public UniTask<List<AIRequestRecord>> RestoreFromSnapshotAsync(DateTime backupDate, CancellationToken ct = default)
Parameters
backupDateDateTimectCancellationToken
Returns
- UniTask<List<AIRequestRecord>>
SaveAsync(IReadOnlyList<AIRequestRecord>, CancellationToken)
public UniTask SaveAsync(IReadOnlyList<AIRequestRecord> records, CancellationToken ct = default)
Parameters
recordsIReadOnlyList<AIRequestRecord>ctCancellationToken
Returns
- UniTask