NHibernate.Lob.External.FileSystemCasConnection.FileSystemCasBlobWriter.Dispose C# (CSharp) Method

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void
			protected override void Dispose(bool disposing)
			{
				if (tempStream != null)
					lock (this)
					{
						tempStream.Dispose();
						tempStream = null;
						try { System.IO.File.Delete(tempFile); }
						catch { }
						tempFile = null;
					}
				if (disposing)
				{
					if (hash != null) ((IDisposable)hash).Dispose();
					hash = null;
					connection = null;
					//cryptBuffer = null;
				}
				base.Dispose(disposing);
			}