Ejemplo n.º 1
0
 // called if error on socket or whilst parsing, or if user code cancels request input
 public void OnError(Exception e)
 {
     if (tail == null)
     {
         socket.End();
     }
     else
     {
         // dispose all pending responses, last of which should end the socket
         tail.Dispose();
     }
 }
Ejemplo n.º 2
0
 public void Dispose()
 {
     _segment?.Dispose();
     _segment = null !;
 }