Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Why doesn’t SessionDataSet implement the IAsyncDisposable interface?

Open
#54 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
csharp
Domain
api

Research direction

Locate SessionDataSet and inspect its existing IDisposable implementation, especially Dispose() and the asynchronous Close() entry point. Confirm the class supports asynchronous disposal and that Close() is awaited without changing the existing synchronous disposal behavior; the issue provides no test or file path, so completion should be checked against both disposal paths.

Written by the indexing model from the issue text.

Description

Currently, SessionDataSet implements the IDisposable interface. However, in its Dispose() method, the asynchronous Close() method is invoked synchronously.

Actual implementation:

protected virtual void Dispose(bool disposing)
{
  if (this.disposedValue)
    return;
  if (disposing)
  {
    try
    {
      //synchronous call
      this.Close().Wait();
    }
    catch
    {
    }
  }
  this.disposedValue = true;
}

Proposed implementation:

protected virtual Task DisposeAsync(bool disposing)
{
  if (this.disposedValue)
    return;
  if (disposing)
  {
    try
    {
      //asynchronous call
      await this.Close();
    }
    catch
    {
    }
  }
  this.disposedValue = true;
}
Dominant language
C#
Stars
24
Forks
6
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apache/iotdb-client-csharp

All issues in apache/iotdb-client-csharp

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.