Resolve CA1063

This commit is contained in:
JustArchi
2021-05-06 23:45:10 +02:00
parent 559fdb34c6
commit 0e9b956ae9
4 changed files with 28 additions and 17 deletions

View File

@@ -34,12 +34,17 @@ namespace ArchiSteamFarm.Helpers {
private bool ReadOnly;
private bool SavingScheduled;
public virtual void Dispose() {
FileSemaphore.Dispose();
public void Dispose() {
Dispose(true);
GC.SuppressFinalize(this);
}
protected virtual void Dispose(bool disposing) {
if (disposing) {
FileSemaphore.Dispose();
}
}
protected async Task Save() {
if (string.IsNullOrEmpty(FilePath)) {
throw new InvalidOperationException(nameof(FilePath));