protected override void Dispose(bool disposing) { if (disposing) { ReadBuffer.Dispose(); WriteBuffer.Dispose(); } }
protected virtual void Dispose(bool disposing) { if (disposing) { ErrorPanel?.Dispose(); ErrorMessage?.Dispose(); MainPanel?.Dispose(); ServerName?.Dispose(); MemoryAllocation?.Dispose(); RadAjaxManager?.Dispose(); CacheGrid?.Dispose(); } }
/// <summary> /// Disposes this hook WITHOUT any check.<br/> /// Disposing a hook means to detach and then free memory regions the hook uses.<br/> /// It's extremely dangerous to call this method. /// Instead, you should call <see cref="WaitToDispose(int)"/>. /// </summary> public void Dispose() { lock (this) { if (_IsDisposed) { return; } GC.SuppressFinalize(this); Detach(); MemoryAllocation.Dispose(); _IsDisposed = true; } }
protected override void Free() { if (Main.IsShutdown) { return; } Transform = null; if (Allocation != null) { Allocation.Dispose(); Allocation = null; } }