Esempio n. 1
0
 internal static void Dispose(this SqliteConnectionHandle connection)
 {
     try
     {
         SQLiteBase.CloseConnection(connection);
     }
     catch (SqliteException)
     {
     }
 }
Esempio n. 2
0
 protected override bool ReleaseHandle()
 {
     try
     {
         SQLiteBase.CloseConnection(this);
     }
     catch (SqliteException)
     {
     }
     return(true);
 }
Esempio n. 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);
        }