コード例 #1
0
 internal static void Dispose(this SqliteConnectionHandle connection)
 {
     try
     {
         SQLiteBase.CloseConnection(connection);
     }
     catch (SqliteException)
     {
     }
 }
コード例 #2
0
 protected override bool ReleaseHandle()
 {
     try
     {
         SQLiteBase.CloseConnection(this);
     }
     catch (SqliteException)
     {
     }
     return(true);
 }
コード例 #3
0
        protected override bool ReleaseHandle()
        {
            try
            {
                IntPtr localHandle = Interlocked.Exchange(ref this.handle, IntPtr.Zero);

                if (localHandle != IntPtr.Zero)
                {
                    SQLiteBase.CloseConnection(this, localHandle);
                }
            }
            catch (SqliteException)
            {
            }
            finally
            {
                this.handle = IntPtr.Zero;
                this.SetHandleAsInvalid();
            }
            return(true);
        }