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.