/// <summary> /// Send response /// </summary> /// <param name="size"></param> protected void SendResponse(int size) { try { messageManager.Send(socket, responseObject, 0, size); } catch { responseObject.Dispose(); } }
void HyperConnection_ConnectionStatusChanged(object sender, ConnectionStatusEventArgs e) { if (e.Status == ConnectionStatus.Disconnected) { _tail = null; if (_tempBuffer.Object != null) { _tempBuffer.Dispose(); _tempBuffer = new ReusableObject <byte[]>(); } } }