orientechnologies / OrientDB.Net.Core

Experimental Modular OrientDB .Net Core Driver.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IOrientDatabaseConnection should inherit from IDisposable

weizensnake opened this issue · comments

Rather than only implementing IDisposable in implementations of IOrientDatabaseConnection such as OrientDBBinaryConnection I think IOrientDatabaseConnection itself should be an IDisposable.
That will allow users to use IOrientDatabaseConnection in using(...) clauses to ensure any resources (e.g., the actual connections) will be released without having to know that the particular implementation of IOrientDatabaseConnection that they end up using is disposable.