public virtual void Dispose() { if (IsDisposed) { return; } IsDisposed = true; if (Socket != default(Socket)) { PodeSocket.CloseSocket(Socket); } if (InputStream != default(Stream)) { InputStream.Dispose(); } if (BufferStream != default(MemoryStream)) { BufferStream.Dispose(); } PodeHelpers.WriteErrorMessage($"Request disposed", Context.Listener, PodeLoggingLevel.Verbose, Context); }
public virtual void Dispose() { if (Socket != default(Socket)) { PodeSocket.CloseSocket(Socket); } }
public virtual void Dispose() { if (Socket != default(Socket)) { PodeSocket.CloseSocket(Socket); } if (InputStream != default(Stream)) { InputStream.Dispose(); } if (BufferStream != default(MemoryStream)) { BufferStream.Dispose(); } }