/// <summary> /// Disposes all the resources used by this instance. /// </summary> /// <param name="disposing"></param> protected override void Dispose(bool disposing) { if (!IsDisposed) { if (disposing) { if (Rcon != null) { Rcon.Dispose(); } Rcon = null; if (logs != null) { logs.Dispose(); } logs = null; if (UdpSocket != null) { UdpSocket.Dispose(); } UdpSocket = null; } base.Dispose(disposing); IsDisposed = true; } }
protected override void Dispose(bool disposing) { if (!IsDisposed) { if (disposing) { if (socket != null) { socket.Dispose(); } } base.Dispose(disposing); IsDisposed = true; } }