Exemple #1
0
 protected void Dispose(bool disposing)
 {
     if (disposing)
     {
         try {
             if (handle != null)
             {
                 Close();
                 handle.Dispose();
                 handle = null;
             }
         } finally {
             var disposedExc = new ObjectDisposedException(GetType().Name);
             Interlocked.CompareExchange(ref lastError, disposedExc, null);
         }
     }
 }
Exemple #2
0
 internal MonoBtlsObject(MonoBtlsHandle handle)
 {
     this.handle = handle;
 }
Exemple #3
0
		internal MonoBtlsObject (MonoBtlsHandle handle)
		{
			this.handle = handle;
		}
Exemple #4
0
		protected void Dispose (bool disposing)
		{
			if (disposing) {
				try {
					if (handle != null) {
						Close ();
						handle.Dispose ();
						handle = null;
					}
				} finally {
					var disposedExc = new ObjectDisposedException (GetType ().Name);
					Interlocked.CompareExchange (ref lastError, disposedExc, null);
				}
			}
		}