mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-16 08:25:28 +00:00
Resolve CA1063
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user