Skip to content

Commit

Permalink
Implement IDisposable to dispose underlying HttpClient
Browse files Browse the repository at this point in the history
  • Loading branch information
arthrp committed Dec 14, 2024
1 parent 2cf47f7 commit e2c74f1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion RqliteDotnet/RqliteClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace RqliteDotnet;

public class RqliteClient : IRqliteClient
public class RqliteClient : IRqliteClient, IDisposable
{
private readonly HttpClient _httpClient;

Expand Down Expand Up @@ -147,4 +147,9 @@ private string GetParameters(DbFlag? flags)

return x;
}

public void Dispose()
{
_httpClient.Dispose();
}
}

0 comments on commit e2c74f1

Please sign in to comment.