TaskService/Native/EventLog.cs
/// <summary>Releases unmanaged and - optionally - managed resources.</summary>
/// <param name="disposing"><c>true</c> to release both managed and unmanaged resources; <c>false</c> to release only unmanaged resources.</param>
/// <exception cref="System.InvalidOperationException"></exception>
Releases unmanaged and - optionally - managed resources.
Releases unmanaged and - optionally - managed resources .
[SecurityCritical]
		protected virtual void Dispose(bool disposing)
		{
			if (disposing)
			{
				if (this == globalSession)
				{
					throw new InvalidOperationException();
				}
				EventLogPermissionHolder.GetEventLogPermission().Demand();
			}
			if ((renderContextHandleSystem != null) && !renderContextHandleSystem.IsInvalid)
			{
				renderContextHandleSystem.Dispose();
			}
			if ((renderContextHandleUser != null) && !renderContextHandleUser.IsInvalid)
			{
				renderContextHandleUser.Dispose();
			}
			if ((handle != null) && !handle.IsInvalid)
			{
				handle.Dispose();
			}
		}
[ SecurityCritical ] protected virtual void Dispose ( bool disposing ) { if ( disposing ) { if ( this == globalSession ) { throw new InvalidOperationException ( ) ; } EventLogPermissionHolder . GetEventLogPermission ( ) . Demand ( ) ; } if ( ( renderContextHandleSystem != null ) && ! renderContextHandleSystem . IsInvalid ) { renderContextHandleSystem . Dispose ( ) ; } if ( ( renderContextHandleUser != null ) && ! renderContextHandleUser . IsInvalid ) { renderContextHandleUser . Dispose ( ) ; } if ( ( handle != null ) && ! handle . IsInvalid ) { handle . Dispose ( ) ; } }
Releases unmanaged and - optionally - managed resources.
Releases unmanaged and - optionally - managed resources .
None
disposing
bool
None