public void Disconnect() { manualStreamOpenedEvent?.Reset(); transporter.TransportDataReceived -= Dispatcher_DataReceivedEvent; transporter.TransportDataTimeout -= Dispatcher_TransportDataTimeout; transporter.Disconnect(); packetQueue.Clear(); }
public bool Delete() => transporter.Disconnect();